![]() |
YUI javascript, problem with IE
Hello,
I made a javascript code which works great on almost all browsers except Internet Explorer, can anyone please let me know what I'm doing wrong here, The Javascript code is suppose to scan the document after it is loaded, look for anchor tags which contain the id pattern of "cityid_x", put all matched ids into an array, add event listener for matched ids, send a link to ajax.php to get the XML response, from that XML response get the specified tag content and put it into the html Firefox, Chrome and Safari does all that without complaining, however IE apparently can't get the tag content from XML response and gives the error of Object Required on line : document.getElementById('ywcity').innerHTML = changecity.handler.responseXML.getElementsByTagNam e('ywcity')[0].firstChild.nodeValue; here is the javascript code: Code:
var changecity; HTML Code:
<div id="ywcity">Sydney</div> Code:
<ywdata> |
All times are GMT. The time now is 12:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|