Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax related changes in IE 7 or 8

 
ajse ruku
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have a java script which works as expected in IE 6 but not on IE 7 or 8. Following the script.

function createRequestObject() {
var tmpXmlHttpObject;
if (window.XMLHttpRequest) {
tmpXmlHttpObject = new XMLHttpRequest();
} else if (window.ActiveXObject) {
tmpXmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
}
return tmpXmlHttpObject;
}
function testFunction() {
var url="some.jsp";
var http = createRequestObject();
http.open('get', url);
http.onreadystatechange = processResponse;
http.send(null);
}

i am using setInterval method to call the testFunction after every 2 mins.

Please let me know if i need to make any changes to male the above script compatible to IE 7 or 8.

regards,
Ajse
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64972
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does not work about it. Does it catch on fire, turn your computer off, sing off tune to twinkle twinkle little star? More details = better answers.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic