Thanks Erik and Vectorspace, I got it working now. But ran into
another problem with content that is delayed loaded.
I am using JQuery and binding the DOMNodeInserted event. In the event
handler I am trying to unbind it so it doesnt fire multiple times for
each inserted node. Yet the browser gets stuck in a recursion loop and
I have to end task it.
Any idea how to unbind the DOMNodeInserted event handler so it fires
just once.
On Jul 28, 10:34 am, Erik Vold <
erikvv...@gmail.com> wrote:
> Use one of the events listed here:
https://developer.mozilla.org/en/DOM_Events
>
> I'd suggest using DOMSubtreeModified or DOMNodeInserted on an element which
> is changed after the AJAX content is loaded, this way your code is executed
> at the correct moment in time.
>
> E
>
> Erik Vergobbi Vold
>
> Email:
erikvv...@gmail.com
>
ganesh.ranganathan...@gmail.com> wrote:
> > Hi, In one of the sites I am trying to modify, the main content is
> > loaded through AJAX after the page has loaded. So my GM script is
> > firing before the content is loaded.
>
> > I tried to make it wait using setTimeout but it still doesnt seem to
> > work. Any ideas?
>
> > Thanks and Regards,
> > Ganesh Ranganathan
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "greasemonkey-users" group.
> > To post to this group, send email to
greasemon...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
greasemonkey-us...@googlegroups.com<
greasemonkey-users%2Bunsu...@googlegroups.com>
> > .