On Feb 25, 11:02 am, Anthony Lieuallen <[email protected]> wrote:
> You really shouldn't be interacting with unsafeWindow at all, you should
> be addEventListener'ing the form element.
>
> http://wiki.greasespot.net/Avoid_Common_Pitfalls_in_Greasemonkey
Thanks for replying.
I figured it was my fault somehow. :)
The addEventListener on the form isn't firing
("forms[i].addEventListener('submit', newFormSubmit, false);"), I
assume it is because the page is using javascript links to submit the
form "javascript:document.search1.submit();"?
I could add onclicks to the javascript links, but I also wanted to
capture submit events even if the user is using another GM script to
submit the form using code like:
"document.forms.namedItem("search1").wrappedJSObject.submit();".
Is there anyway to do this or is it just not possible?
--
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.