Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello, i have my own site and i am downloading dropdown data from my site and uploading to other site using service but when i am requesting to my site for download it give error like:SyntaxError: invalid XML attribute value

<option value=0 style='width:160px;' >All Regions</option>
but my site working fine but i cant get download dropdown data have any solution my current code like this..


Java
$.ajax({
       type: 'GET',
       url: "urlofmysite",
       dataType: "jsonp",
       success: function (data) {
          if (console && console.log) {
             console.log('Sample of data:', data.slice(0, 100));
          }
       },
       error: function (xhr, err) {
          console.log('Sample of error data:', err);
          console.log("readyState: " + xhr.readyState + "\nstatus: " + xhr.status + "\nresponseText: " + xhr.responseText);
       },
       crossDomain: true
});
Posted
Updated 23-Oct-12 0:20am
v2
Comments
bhargavpp 23-Oct-12 6:57am    
please do not update my question
Tim Corey 23-Oct-12 8:43am    
Nelek modified your post to properly format it. All posts at Code Project are required to follow a specific pattern in order to keep them looking professional. Your post did not conform to that, which is why it was changed.
Sergey Alexandrovich Kryukov 23-Oct-12 9:47am    
Actually, this post required at least one more change: adding a new tag: "I don't care".
The only alternative is: add one more <src>, fix punctuation and give upper cases to letters in appropriate places. This is mere politeness. And not doing it by mistake is still OK if some errors are missed my mistake, but rude if this is done because OP simply does not care. I mean it: rude.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900