sayedsohail Posted August 6, 2007 Share Posted August 6, 2007 Hi everyone, If i use alert("status is " + request.status);, it works fine. but if pass the response into function update("Status is:"+request.status);, than it says error. function update(str) { document.getElementById("popmess").innerHTML=str; //popmess is div element with an id=popmess. } Is something wrong with my script.? Link to comment https://forums.phpfreaks.com/topic/63528-solved-simple-javascript-display-function-not-working/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.