This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Ajax related changes in IE 7 or 8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax related changes in IE 7 or 8" Watch "Ajax related changes in IE 7 or 8" New topic
Author

Ajax related changes in IE 7 or 8

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 194
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

Joined: Jan 10, 2002
Posts: 61084
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax related changes in IE 7 or 8