I am newbie to javascript, so could not make much sense out of it. I do have
very less time hardly two days, apparetly I can't experiment on the things
now. I am thinking to have a simple solution.

On Wed, May 19, 2010 at 2:25 AM, esquifit <[email protected]> wrote:

> On Tue, May 18, 2010 at 6:36 PM, esquifit <[email protected]> wrote:
> > On Tue, May 18, 2010 at 12:37 PM, jyothi panidarapu
> > <[email protected]> wrote:
> >> Is there anyway through javascript to find the ip address locally, by
> not
> >> querying any other external websites?
> >
> > Until Firefox 3.5.something, this used to work, but it does no longer
> > do, I don't know why. Maybe you can fix it.
>
> This seems to be the reason and the fix: [1], [2].  In short, starting
> with Firefox 3.6 and Java Plugin 6u12, directly calling class methods
> from javascript through the global 'java' object no longer works
> (there is no such object any longer).  You are requied to
> 1) embed an actual applet (even a dummy applet would do) with an
> <applet> or <object> tag,
> 2) maintain an 'id' attribute for this tag, for example <applet id='myapp'
> ...>
> 3) finally invoke you method like for example:
>
> (new myapp.Packages.java.awt.Toolkit.getDefaultToolkit() ).beep();
>
> I haven't tested anything. Even if this were correct, one still should
> cross fingers and hope that it continues to work within the
> Greasemonkey sandbox.
>
> [1] http://www.andonyar.com/rec/2008-12/gemse/demo/doc/dev/java.xhtml
> [2] https://jdk6.dev.java.net/plugin2/liveconnect/#JS_TO_JAVA
>
> --
> 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]<greasemonkey-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/greasemonkey-users?hl=en.
>
>


-- 
- Jyothi
M.Tech,CSE
IITMadras

-- 
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.

Reply via email to