jsalita Posted August 21, 2007 Share Posted August 21, 2007 Are there any issues with the two? I have a script that works just fine on Firefox and Opera but doesn't appear to be called in IE. Quote Link to comment Share on other sites More sharing options...
adam84 Posted August 21, 2007 Share Posted August 21, 2007 I've had the same problem, but I keep on messing around with it and eventually it works in IE Quote Link to comment Share on other sites More sharing options...
js_280 Posted August 21, 2007 Share Posted August 21, 2007 How are you initiating the XMLHTTP object? myRequest = new XMLHttpRequest(); // For Firefox myRequest = new ActiveXObject('Microsoft.XMLHTTP'); // Two quick versions for IE myRequest = new ActiveXObject('Msxml2.XMLHttp'); Quote Link to comment Share on other sites More sharing options...
jsalita Posted August 21, 2007 Author Share Posted August 21, 2007 How are you initiating the XMLHTTP object? myRequest = new XMLHttpRequest(); // For Firefox myRequest = new ActiveXObject('Microsoft.XMLHTTP'); // Two quick versions for IE myRequest = new ActiveXObject('Msxml2.XMLHttp'); It's placed inside a function like so: var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; I just copied this part from w3schools. Quote Link to comment Share on other sites More sharing options...
jsalita Posted August 21, 2007 Author Share Posted August 21, 2007 Did a bit more testing and it looks like the problem is in the event handler. The AJAX methods are called onmouseup which doesn't seem to work properly on IE if the mouse is dragged before it gets released. I guess this means that it's not an AJAX problem anymore but anyway, does anyone know how to get around this? Quote Link to comment Share on other sites More sharing options...
1andyw Posted August 21, 2007 Share Posted August 21, 2007 I am experiencing problems with IE not recognizing generated data as a value when other browsers recognize the data without incident. Could this be a part of this problem? Andy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.