Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically Returned Javascript is Undefined

Status
Not open for further replies.

scousethemoose

Programmer
Jul 14, 2002
69
AU
Hi

I'm building an ajax based messsaging system at the moment, and am returning dynamically created javascript array written by an asp page.

This script is put into the page using document.getElementBy('msgID').innerhtml = request.responseText.

When I try to use the function which accesses the returned array, its reports the array as undefined.

Any suggestions?
 
Hi

I've solved my problem, I needed to declare the array in the main page and eachtime I callled the fucntion which needed to use the array I reinitialised it.

Thanks for the response though
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top