Hi all I have this code on one site (test_site_a.co.uk...) what it does is call an asp file called higson.asp on a completely different website which then returns a html table of subscribers. The code in this JS then writes out that table directly with document.write.
This works just fine in IE but fails miserably in Firefox. No error message just doesn't do anything. I've read that FF does not allow http ajax calls across different domains, anybody know if that is correct please? Cheers Graham <script language="Javascript"> var xmlHttp; try { xmlHttp=GetXmlHttpObject() xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.write(xmlHttp.responseText); } } xmlHttp.open("GET","http://www.bni-plains.co.uk/higson.asp",true); xmlHttp.send(null); } catch (e) { try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.write(xmlHttp.responseText); } } xmlHttp.open("GET","http://www.bni-plains.co.uk/higson.asp",true); xmlHttp.send(null); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.write(xmlHttp.responseText) } } xmlHttp.open("GET","http://www.bni-plains.co.uk/higson.asp",true); xmlHttp.send(null); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.write(xmlHttp.responseText) } } xmlHttp.open("GET","http://www.bni-plains.co.uk/higson.asp",true); xmlHttp.send(null); } catch (e) { alert("Your browser does not support AJAX!"+chr(13)+chr(10)+e.description); } } } } </script> Graham Brown CompSYS Software Solutions E:[EMAIL PROTECTED] BNI Member. The Business Referral Organisation For more information please go to http://www.bni-plains.co.uk _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.