02-23-2008, 05:18 AM
|
#2 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Location: Brazil
Posts: 77
Thanks: 14
|
As far as I know.. you can't assign a new "text" directly like this:
Code:
document.getElementByName('guide1') = xmlHttp.responseText
You have to use the innerHTML property of the element, like this:
Code:
document.getElementByName('guide1').innerHTML = xmlHttp.responseText
Also, I think it's more common to use document.getElementById instead of getElementByName. I don't know if it has something to do with browser compatibility, standards or something like that.. but all the examples I see all the time are using getElementById. Of course, to use getElementById you should set the id=".." property of the element instead of the name=".." property.
|
|
|