Reputation: 38529
I want to parse a web page into my page, so i prefer AJAX in my code. While using the AJAX it showing "Access denied" - before fetching the specified page. The page doesn't consider any login information.
Even though i cant able to get the page of google too..
Please guide me to how to use the AJAX so for
Thanks,
Praveen
Upvotes: 0
Views: 458
Reputation: 2262
You can send XMLHttpRequest
s only to your domain.
if your site is example.com
you can send XMLHttpRequest
s only to example.com
.
Firefox 3 supports cross-domain requests but you need to send Access-Control
first.
The solution is to send a request to your domain and fetch cross-domain content via some server language (Java, PHP, Python, etc.)
Upvotes: 9
Reputation:
You can also use a hack to retrieve data through a CSS include http://nb.io/hacks/csshttprequest
Upvotes: 0