Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>working with a java applet

working with a java applet

graziano
11-24-2004, 07:15 PM
Hello

I found a java applet which detects real visitor ip and it's very useful
http://reglos.de/myaddress/MyAddress.html

I use this simple code to call the applet .


<APPLET CODE="MyAddress.class" WIDTH=1 HEIGHT=1 >
<PARAM NAME="URL" VALUE="find.php?IP=" >
<PARAM NAME="ACTION" VALUE="AUTO" >
<PARAM NAME="TARGET" VALUE="_new">
</APPLET>


With NAME="URL" I pass the ip value to my php script .
NAME="ACTION" open a new window and call find.php

My question is (if anyone can help) ... with javascript
could I change the size of the window which opens the applet ?
I tried in every way , no solution .

Thank you
Graziano
p.s. the _stealth function on the doc doesn't work with latest IE and Netscape version . The source code is no available and the author of the java applet doesn't respond to my email .

sad69
11-24-2004, 08:41 PM
So what you want to do is open the window first and give it a name. Then the TARGET param should be the name of the window you opened.

<script>
var ip_window = window.open('','ip_window','width=25,height=25');
</script>

<APPLET CODE="MyAddress.class" WIDTH=1 HEIGHT=1 >
<PARAM NAME="URL" VALUE="find.php?IP=">
<PARAM NAME="ACTION" VALUE="AUTO" >
<PARAM NAME="TARGET" VALUE="ip_window">
</APPLET>


There are other things you can set for this new window aside from the the height and width:
http://www.mozilla.org/docs/dom/domref/dom_window_ref76.html

Hope that helps,
Sadiq.

Willy Duitt
11-24-2004, 09:52 PM
Your local IP Address is Sorry, but Java hat to be enabled to show your IP address!
Documentation and Download of this Java applet ?002 Lars Kindermann

graziano
11-25-2004, 06:35 AM
Thank You!

graziano
11-25-2004, 07:06 AM
another problem ... since windows service pack 2 disable window.open() by default , do you think possible redirect the applet to an IFRAME ?


Thank you!
Graziano

graziano
11-25-2004, 07:58 AM
does exist something like iframe.open() ?

jbot
11-25-2004, 09:42 AM
does exist something like iframe.open() ?

no. another thing is not to use the applet tag which is actually deprecated. if you got that from a book or another website, it's an outdated source of information. see here (http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/using_tags.html) for the proper syntax :)


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

A little help with javascript IF/THEN
help me to resolve this checkbox problem
Is VBScript "invisible"?
does anyone use Venkman?
How can I use "enter" to submit a form in a frame using javascript?
So confused
View Images in a Directory Script...?

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics