XML may not be the whole program

I use jquery to make a $ .ajax () call to a REST web service. Based on the documentation I found, I need to use jsonp as the data type to make this cross-call the domain (the XML document is what really returns). However, when I run my code, I get the error message "XML may not be the whole program."

Does anyone know what this error means and how to fix it (if at all)? A Google search did not provide much information, and another post on this subject didn’t help me either.

If you have further questions, let me know.

+3
source share
2 answers

, - *.js, <script></script> ... . XML- .

+1

XML , JSON, xml. , , :

<magic8ball>
   <outcome_looks_doubtful/>
</magic8ball>

- :

{"value": "<magic8ball>
    </outcome_looks_doubtful/>
</magic8ball"}

JSON, jsonp. , , xml, .

+1

Source: https://habr.com/ru/post/1723480/


All Articles