[Greasemonkey] Interframe communication
Bill Donnelly
donnelly at snowcrest.net
Mon Jan 9 04:57:42 EST 2006
With "// @include *", you *are* "firing up the script also for
the individual frames and doing the attach in there". Maybe that
doesn't matter since you are doing stuff for frames of the window
for which the script is loaded, and the frames (maybe!) won't have frames.
Anyway, maybe they're conflicting, somehow, or something?
(unless the include meta data item is an after-the-fact/debugging change --
you have a lot of code there, so I only gave it a cursory look)
If the frames aren't 'ready' yet (?), then I would try it with
an onLoad event for each of them to call one of your functions and set
the keydown event handler then. Maybe an onLoad event would work
"immediately"
if the frame wasn't completely 'ready' yet, whereas a keydown event
wouldn't? (?)
And/or you could execute your code at onload for the main window,
or after some amount of time. (100+ milleseconds?)
More information about the Greasemonkey
mailing list