Is there a way to use a loop to insert separate DIV elements behind each other?
Right now I use a loop to do just that, but it doesn't remember the DIV inserted before with the load method. The result is that I only see the last one.
The code is meant to show all messages, after it reads the cookie with the db-id when you first arrive at the page.
summary:
the addmessage()
function receives the xml-object and starts looping through it. Each separate message calls the newnote()
function, which loads a DIV element and does stuff in its callback function like setting the db-id
. After that it returns to the addmessage
function.