[Proto-Scripty] Re: element array update by ajax.request

2010-07-24 Thread ALO
Thank you very much Mr. Crowder. I am so grateful to you. Your suggestions helped me to find the appropriate solution. Problem solved successfully... Regards, Iqbal On Jul 24, 10:39 pm, "T.J. Crowder" wrote: > Hi, > > > But would you figure > > out my code which was drawn in picture, where is t

[Proto-Scripty] Re: element array update by ajax.request

2010-07-24 Thread T.J. Crowder
Hi, > But would you figure > out my code which was drawn in picture, where is the possible problem > and hints. As I said, "...just move the body of your loop into a separate function and pass that function the value of `i` and the other things it needs...". There's only one loop in your quoted

[Proto-Scripty] Re: element array update by ajax.request

2010-07-24 Thread ALO
Hi, Thank you very much for your kind and detail reply. I could understand your all possible suggestions. But would you figure out my code which was drawn in picture, where is the possible problem and hints. Actually the ajax.request could fetch data nicely which was examined by alert(); But I co

[Proto-Scripty] Re: element array update by ajax.request

2010-07-24 Thread T.J. Crowder
Hi, This is a classic problem, which can probably be easily summed up like this: var index; for (index = 0; index < 5; ++index) { $('button' + index).observe('click', function(event) { // Why does this always say "This is button 5" no matter // which button