Could you help me how to do it ?  I am really new on these things and
didn't understand what you mean. :(

On Aug 7, 7:40 pm, Anthony Lieuallen <[email protected]> wrote:
> On 2011-08-07 12:31 PM, al azif wrote:
>
> > GM_getValue("store","error"); takes the value on the first loop, but
> > on the next ones it gives out "error". So the values are empty. It
> > shows that there is a problem with the GM_setValue function. It only
> > works on first loop.. What shall I do, Have any idea?
>
> This is a classic programming error with loops in javascript.  The
> GM_xhr callback on complete is not happening until after the entire loop
> has completed.  This for every iteration of the loop, you're trying to
> get the value you just deleted.
>
> Put the code actually using the GM_xhr onload values in the onload callback.

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