Hi Neng,
[cut]
> It turns out that Firefox support interaction between java and javascript.
I feel better now.... I've had a confirmation that I wasn't dreaming before ;)
> Now I found the solution of you problem is to add js into web page, sample
> as below:
> var body = document.body;
> var ip = document.createElement('script');
> ip.setAttribute('type','text/javascript');
> ip.innerHTML = 'var ip = new java.net.InetAddress.getLocalHost();alert(ip);'
> body.insertBefore(ip,body.firstChild);
I'm trying that now !
anyway java.net.InetAddress.getLocalHost() turns back the loopback
address (i.e. 127.0.0.1)
but what I need is the local address of my network interface (e.g.
192.168.1.XX)... that's
why on my original code I use the trick that involve opening a socket
to a known hostname
(note that you need to grant permission to this kind of operation in
your java.policy )
> Hope it helps!
thank you, very appreciated !
Andrea
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---