I have been banging my head against the wall on this one.
Here is the code I have:
It works in IE, but not in FF. The line for alert(req.responseText) shows in IE but in FF it is empty and there are no errors in the javascript console.
any ideas?
Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.
Here is the code I have:
Code:
var url = "[URL unfurl="true"]http://myurl.com/getData.asp?type="[/URL] + type + "&what=" + what + "&where=" + where;
if(window.XMLHttpRequest) {
var req = new XMLHttpRequest();
} else if(window.ActiveXObject) {
var req = new ActiveXObject("Microsoft.XMLHTTP");
}
req.open("GET", url, true);
req.send(null);
if (document.implementation && document.implementation.createDocument)
{
var strXML = document.implementation.createDocument("","",null);
strXML.async = false;
alert(req.responseText);
strXML.load(req.responseText);
} else if (window.ActiveXObject) {
var strXML = new ActiveXObject("Microsoft.XMLDOM");
strXML.async = false;
strXML.loadXML(req.responseText)
alert(req.responseText);
}
any ideas?
Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.