If you haven't already, I would suggest installing firefox and the firebug extension which will allow you to run the code in a debug window. But the most likely scenario that's going on here, is that the page is being cached in the browser. Try adding a random number as a parameter to the url (i.e., use
url + '?X=' + Math.random() in place of
url) and see if that makes the problem go away.
Donald Hosek, Tech Lead at oversee.net
L.A. perl people, we're hiring.