Possible Duplicate:
Ways to circumvent the same-origin policy
Please help.. Mainly I want to parse a HTML from a different URL using JavaScript so I can find there if a class exists and I can show the result on my page if it exists or not.
Possible Duplicate:
Ways to circumvent the same-origin policy
Please help.. Mainly I want to parse a HTML from a different URL using JavaScript so I can find there if a class exists and I can show the result on my page if it exists or not.
I don't know your enviroment, but it looks like a jsonp :)
http://en.wikipedia.org/wiki/JSONP
1) You avoid same origin policy because You use src attribute of script tag.
2) You can have everything sent right into your callback function.