praveenjayapal
praveenjayapal

Reputation: 38529

Access denied problem in AJAX

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

Answers (2)

Ivan
Ivan

Reputation: 2262

You can send XMLHttpRequests only to your domain. if your site is example.com you can send XMLHttpRequests 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

Timothy
Timothy

Reputation:

You can also use a hack to retrieve data through a CSS include http://nb.io/hacks/csshttprequest

Upvotes: 0

Related Questions