My goal is to modify the contents but it seems the way I am calling the AJAX it is replacing all the content instead of adding to it the code that you put there I am already using so it doesn’t solve my problem.
innerText is proprietary IE only code. To use appendChild you need to have constructed the content with the appropriate DOM calls to createElement and createTextNode first.
maybe am doing something else incorrect because I am still getting only one result. So I will explain the entire scenario. I have some ids in localstorage I want to use ajax to retrieve each of the items associated with the id. Example 1&2 are in memory so it will call the server (php) to retrieve each item so in the end both item 1 and item 2 will be show on the page. I am doing this in a loop which the httpRequest is part of.
ok I found out what is my problem. It seems the loop is executing faster than the xmlhttprequest. That why I only get one reply. What I need to do is create a AJAX queue. Anyone has a good example on how to create this.