[jQuery] Take the XML response without using DOMParser() or ActiveX
Hallo,
I'm used to check the broser version in my callback function (when
managing the xml from the response), something like:
try{
// for Ie
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}catch{
//for FF
xmlDOc=DomParser()
(code is not complete :))
is there any way to make this transparent with jQuery?
something like
xmlDoc = $.takeXmlFromResponseWhateverBrowser bla bla
i need this because my boss said "what if i disable the ActiveX
component in IE?"...obviusly the Ajax thing stops working....
any suggstion?
ps: sry for my english