>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Introduction to Cross-Domain Ajax - domain web cross ajax policy origin site server

 
Registered tutorials: 501
Registered Users: 33128



Rating: 0 out of 0 votes cast


  
Category: Technique Introduction

Introduction to Cross-Domain Ajax

Digg this   Post to del.icio.us

Abstract: AFAIK, the cross-domain Ajax calls are prohibited on the browser level due to the security reason. What to do if you really need to use the different source for Ajax response? This article is a great overview of the available tips and tricks.

What's this all about?

First, lets talk about the problem for a bit. It goes by the name same origin policy, and this explanation from mozilla.org is typical:

The same origin policy prevents document or script loaded from one origin from getting or setting properties of a document from a different origin.
-- From http://www.mozilla.org/projects/security/components/same-origin.html

This means that it is largely impossible to load scripts from one domain into another. For example, the following are prohibited:

  • Issuing an XMLHttpRequest() to another domain (a core component of Ajax).
  • Accessing or modifying the DOM of a <frame> or <iframe> which has a src attribute with another domain.
  • Accessing or modifying another window (or tab) which has a different location.

  • Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 1184
Unique Hits: 1121


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 1.6 1.6 10.4 10.9 70.4 74.3
Current 2 2 2 2 2 2
Previous 3 3 13 13 66 68
Nov 29 0 0 23 25 113 117
Nov 28 0 0 0 0 90 97
Nov 27 1 1 10 10 92 97
Nov 26 0 0 0 0 80 87
Nov 25 4 4 19 19 94 99
Nov 24 0 0 0 0 0 0
Nov 23 5 5 18 19 91 96
Nov 22 1 1 19 21 76 80
Highest 14 14 55 57 129 132


Script Execution Time: 0.20953 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2