[Greasemonkey] Interframe communication
Anton Berezin
tobez at tobez.org
Wed Jan 4 09:48:54 EST 2006
Hi,
I need to attach a keydown handler for a frame in a script that fires up
on the corresponding frameset. It does not work - I think because at
the time the attach happens the frame is not loaded yet, and any
handlers are removed. Or maybe my understanding of what happens is
wrong entirely, and it does not work for some other reason.
I could in theory achieve what I want by firing up the script also for
the individual frames and doing the attach in there. In order for this
to work, I need some mechanism to pass a function or other kind of data
between the frameset and the frames (or between their corresponding
XPCNativeWrappers, or between different instances of the same GM
script).
So far everything I tried failed. Do you folks have any hints?
Thanks,
\Anton.
--
An undefined problem has an infinite number of solutions.
-- Robert A. Humphrey
More information about the Greasemonkey
mailing list