Tuesday, September 04, 2012

Hi,

The cross domain is a well know issue when trying to work between 2 or more domains under the same web page.

For an example, you developed a great third party control (or some other web component) that suppose to affiliate with another web site and hosted it inside an iframe on the host web site, but when giving the ability for the common user to do some actions inside your cross domain iframe, you find yourself in a problem because the host web site bans all the requests from the iframe itself.

 

This is a very common cross domain problem, that is being exists in some browsers in order to perform security policy.

 

I found lately a great open source code that can solve your problems very easily called: easyXDM.

According to their site: “easyXDM is a Javascript library that enables you as a developer to easily work around the limitation set in place by the Same Origin Policy, in turn making it easy to communicate and expose javascript API’s across domain boundaries.”

You can find some code examples and how-to techniques on their web site here.

 

Have fun and good luck!

AJAX | JSON | Javascript
Posted by: Eran Nachum (c)
Post Date: 9/4/2012 11:27:00 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | | Trackback   #
 Monday, June 28, 2010

Great post in regards asp.net & Json.

I wasn’t familiar with System.Web.Script.Serialization.JavaScriptSerializer which provides serialization and deserialization functionality for AJAX-enabled applications.

While searching the web in regards this issue, I bumped into a great post that outlines the usage of this namespace.

You can check it out here.

Good Luck.

ASP.NET | C# | JSON
Posted by: Eran Nachum (c)
Post Date: 6/28/2010 4:34:00 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | | Trackback   #