Have you tried

var doc = document;

...{
    doc.body
{

or chances are the document hasn't been modified, if you can visually
detect the modification but not detect it programatically then you may be
trying to access the changes in an outdated manner, you should probably be
using document.getElementById() or equivalent.

On Tue, Nov 8, 2011 at 1:25 PM, Trigun <[email protected]> wrote:

> hello
> i'm making a js script with greasemonkey... in that script i put this
> line
>
> document.addEventListener ("DOMSubtreeModified", check, false);
>
> in the check function i use the document var but it always point on
> the document loaded and i lost the change maded by the ajax...
>
> how i can update the document var every time the document is modified?
>
> tnx
>
> --
> 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.
>
>

-- 
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.

Reply via email to