Hello,
I really enjoyed Jeremy Keith’s BulletProof Ajax book, and I have a question about the example he uses for Chapter 4 on using html as a data format to load into a page example here:
[URL=”http://bulletproofajax.com/code/chapter04/html/people/index.html”]http://bulletproofajax.com/code/chapter04/html/people/index.html
It works fine on intial load, but then if you
change the one of the html files (after they have been loaded into the browser once) the content does not change after its been
loaded into the browser. (FF mac)
It is using the innerHTML method of inserting the html onto the page.
So, I have tried using this with my own content and the same thing happens.
The first time it loads it works fine, but then when I edit one of the html files that is called by the AJAX call, I still get the old content. It is as if it is not refreshing the data that was loaded to the browser originally.
Do I need to remove the node that is there before trying to reload new data in?
Thanks,
Willy