Hi,
I'm not very good with javascript/ajax but managed to get this
example working:
http://www.dynamicdrive.com/dynamici...jaxroutine.htm
I've adjusted their getAjaxRequest function slightly to allow me to
specify where the result goes 'divtoupdate' which is just an
extra argument to the function.
What i'm trying to do now is have a button on a website that runs
a loop updating a number of DIVS, eg:
for (x in divs_to_update)
{
updatediv = divs_to_update[x];
ajaxpack.getAjaxRequest("example.php?id=" + updatediv, "", processGetPost, "txt", updatediv);
}
This works OK except only the last DIV in the loop actually
gets updated. I think this has something to do with the example
code using global objects or something.
Can anyone please suggest what I need to change to have each
call in the for loop actually actioned separately?
Thanks a million,
Adrian.