Does this [1] help you? Here [2] you can see an example. [1] https://developer.mozilla.org/En/DOM:document.createEvent [2] http://groups.google.com/group/greasemonkey-users/browse_thread/thread/d13cb9e11862ad95/2f390d70f385ed53?lnk=gst#2f390d70f385ed53
On Sun, Jan 25, 2009 at 8:06 AM, Shi Songhua <[email protected]> wrote: > newbie question:[?] > > I want to trigger A's event when B is interacted with > In jQuery it's as simple as > >> $("#A").bind("click",function(){alert($(this).attr("id"))}) >> $("#B").bind("click",function(){$("#test").trigger("click")}) >> > > But using this method in a greasemonkey script seeming not working[?] > > Does any expert knows if there is a way to trigger other object's events > directly? > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
<<inline: 349.gif>>
<<inline: 361.gif>>
