Im trying to build a bookmarking feature with ajax and everything has work until i come across the callback problem.
document.getEle mentById during stateChanged
Im trying to make possible
as im having multiple div id on my page each page will have 15 mysql result and will be ID by their ID. For example
I have no idea why but it doesnt seem to work but would only work when i place getElementById as a fixed value such as
for
in this way, i cant perform any unique response to my list of mysql result. Please help.
document.getEle mentById during stateChanged
Im trying to make possible
Code:
document.getElementById(id).innerHTML=xmlHttp.responseText
Code:
<div id="1"></div><div id="2"></div><div id="3"></div>
Code:
document.getElementById("msg").innerHTML=xmlHttp.responseText
Code:
<div id="msg"></div>
Comment