XMLHttpRequest only working in IE
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Thursday, September 21, 2006 11:04 PM

HI...I'm new in Ajax....i'm trying to retrieve a multiple rss and display it in my browser...it's working fine in IE.....but the request seems cannot be processed in Mozilla....

How can i solve dis problem.?
ty in advance :)

Re: XMLHttpRequest only working in IE

Posted By:   Hemanth_Sumanth  
Posted On:   Wednesday, October 11, 2006 12:28 PM


Try to create the XMLHttpRequest in the below mentioned format

 if (window.XMLHttpRequest) {
portletReq = new XMLHttpRequest();
} else if (window.ActiveXObject) {
portletReq = new ActiveXObject("Microsoft.XMLHTTP");
portletReq.onreadystatechange = processReqChange;
portletReq.open("GET", updateURL, true);
alert("Not going inside");
About | Sitemap | Contact