i need to make a request to a dedicate website , using jsonp for cross domain reason to get back a xml result and work on it so basicly i m doing this to start :
(function($) {
var url = 'http://www.website.....';
$.ajax({
type: 'GET',
url: url,
// async: false,
// contentType: "application/json",
dataType: 'jsonp',
});
})(jQuery);
i can finally get an answer from website, that i can see in the firebug plugin but in xml tab such as :
<Results xmlns:xsi="http://ift.tt/ra1lAU" xsi:noNamespaceSchemaLocation="http://www.website.com">
<ResultSet id="searchResults" numResults="3" >
etc...
from my understanding jsonp is a json object and in my case it s returning a xml content.
my problem is how to manage the xml return from the website so i can parse it and play with in the javascript code,
thanks for this
No comments:
Post a Comment