I have code seperated in two domain. Both domains and code is trusted.
I wanted to access code of domain B VIA jquery’s .load() method from domain A, but came to know that its not possible due to restriction of data-access between cross-domains.
YQL came as option to me, worked fine. BUT it doesn’t brings the data in < script >< / script > tags. I have examined the data being returned and it has all the HTML of called page from Domain B otherthan SCRIPT code.
I need to bring SCRIPT code and execute it.
Couldn’t find anything related in YQL help (they only mentioned how to remove < script > from returned data), but in my case YQL itself removes scripts.
What’s happening at the url you’ve provided, is not so much that
scripttags are being stripped, as the YQL select returning only the body of the document by default, and your script is placed in the head.You can get the head with a query such as this one: