File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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

Ajax related changes in IE 7 or 8

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 196
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();'get', url);
http.onreadystatechange = processResponse;

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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63874

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] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
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.

I agree. Here's the link:
subject: Ajax related changes in IE 7 or 8
It's not a secret anymore!