Monday, August 25, 2008
Wednesday, August 20, 2008
Qutote 2
Wednesday, August 13, 2008
Super star Rajini
Monday, August 11, 2008
JSON'P' - Though intelligent yet in-sufficient solution
pearl script
Tuesday, August 5, 2008
Solving cross domain problems
The problem
At times we need to integrate pages from two/ more domains into a single page. Consider for example the case where the content management (cms) happens by a 3rd party in a specific domain and say we have our page which belongs to some other domain and we want to include this cms functionality into our page. One common way of sloving this is by including the content management service (cms) using an iFrame and let this included page and the parent page communicate via backend server communications. This has problems: the iframe (cms) is of some other web domain not belonging to the parent page's domain... this makes cms javascripts in-accessible i.e. the colour component/ calendar component doestnt work fine. IE throws Access Denied ; mozilla doesnt execute anything... it just ignores this cross domain js.
This seem to make some sence: as they are cross domain pages... it's more logical taht they remain independent. Then how do we solve this issue?
There is a way:
1. From a webserver make a URL call to the 2nd webserver using a JSP/ servlet
2. Let the user send his required parametrs as a request to the 1st webserver.
3. This webserver inturn would call the 2nd webserver, gets the data, processes internal urls (like