List Info

Thread: javascript scope between browsers




javascript scope between browsers
user name
2006-10-19 13:07:15
Hi

I am puzzled by javascript scope within greasemonkey/firefox
extensions.

In normal web app, I can open a window (wdw =
window.open(...) and then 
within the parent call the child using wdw.someFunction() or
within the 
child execute a function in the parent using
window.opener.someFunction.

Within a greasemonkey script or firefox extension, I want to
open a window 
and then make calls from parent and child to functions
within the extension. 
The standard web technique does not work - I guess because
the functions are 
not in the scope of the window but of the browser.

Is there any way around this?

James 

_______________________________________________
Greasemonkey mailing list
Greasemonkeymozdev.org
http:
//mozdev.org/mailman/listinfo/greasemonkey
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )