Hello,
I'm using a proxy script to get XML from an ASP server. While I can read directly the data into a browser, I have problems using jQuery. I must be tired, but if someone can pinpoint what I am not doing, or doing wrongly, I would greatly appreciate!
Here is the code:
I am not receiving any error alert. The complete function returns : [object XMLHttpRequest]
- var webMethod="http://www.innergex.com/proxyStockwatch.asp";
- $('#content-area').append('<div id="test"></div>');
- $.ajax({ url:webMethod,
- dataType:'xml', success:function(xml){ alert('succès')}, erreur:function(xml){ alert('erreur ')}, complete:function(xml){ $('#test').text($(xml).toString()); } })
I have tried with a result coming from a proxy made in PHP. Same problem.