Hi esquifit, On Thu, Sep 4, 2008 at 1:16 PM, esquifit <[EMAIL PROTECTED]> wrote: > > It is not necessary to explicitly embed the code into the page. The > trade-off is having to use unsafeWindow. The following works for me. > > var ip = unsafeWindow.java.net.Socket(document.location.host, > document.location.port || 80) > .getLocalAddress().getHostAddress(); > alert(ip);
good to know :) > I found that Socket must be passed the host and port of the window the > scripts runs on, otherwise the browser triggers a security exception. many thanks for that one.... no need to tweak java settings on every box that uses that script :) [cut] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
