Jump to content

[SOLVED] simple javascript display function not working?


sayedsohail

Recommended Posts

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.?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.