Hi guys, is there a way to load XML data into a cross domain using jQuery (= client side)?
$.get('http://otherdomain.com/data.xml', function(xml) { }
The above doesn't work - should I rely on JSONP, or is there a way to load XML?
You need to use JSONP .
Unable to load XML. So yes, using the "standard" xmlhttprequests you need JSONpadding.
"" (CORS)", . , XmlHttpRequest ( "Origin" ) , .
, Chrome jsonp .
json -, jsonp xml , jsonp.
, Yahoo Query Language api .
xml.
, , .
, url yahoo api encodeURI. getJSON jQuery, raw xml.
, php-, file_get_content curl ( Php/ROR dev, ). , XML- ,
, AJAX, curl file_get_content HTTP- Ajax .
XML- AJAX.
Source: https://habr.com/ru/post/1747819/More articles:python dictionary with constant type value - pythonHow to change FPU context in a signal handler (C ++ / Linux) - linux.net 4.0 parallel dictionary - c #How to get the date of the next month from today (i.e. Exactly one month will expire from today - sqlDatabase abstraction / adapters for ruby โโ- ruby โโ| fooobar.comChanging TextBlock.Text in trigger does not work - styleswindow.close () creates a problem - javascriptUsing SVN alone or in small workgroups - workflow approach? - version-controlHow to set date and time bindings using JAXWS and APT? - javaC # How to redirect assembly using application configuration file - c #All Articles