is this xml correct
Is there any problem with this xml??
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<results xmlns="http://www.host.com/type">
<result>
<attr value="" name="TitleBlock1"/>
<attr value=开发者_如何转开发"" name="TitleBlock2"/>
<attr value="Introductory" name="rev"/>
</result>
</results>
As when I am getting response back from the server.. and when I checked in firebug, it is saying that
XML Parsing Error: no element found Location: moz-nullprincipal:{3c06a977-b497-5c43f72584c8} Line Number 1, Column 1:
^
As I am not getting any response back from the server, and also I am getting 200 Ok request for this url https://rest-search.host.com/machine/search/meta?id=TR
but no response back. This is below code
var search_agile_metadata= 'https://rest-search.host.com/m/search/meta?id=';
var on_show_info_agile = function() {
request_meta_info = $.ajax({
url: data + current_doc_info.id,
type: 'GET',
success: data,
error: data
});
};
So thought to change the url to get the json response. And when I change the dataType to script then I get the response back but with the error missing ; before statement
. I don't know what I am doing wrong
Is the server response missing the Access-Control-Allow-Origin header which will allow your javascript to read the response?
精彩评论