There are totally 3 relevant files involoved.
- The main aspx file ( which hosting iframe of another site. (Under domain main.com) Notice: you should add src="http://sub.com/index.jsp" in the iframe.

- The transmission html file (grAutoSize.htm) which link the iframe part with main site. (Under domain main.com)

- The hosting site JS file (refer.js) which referred by sub domain pages (Under domain sub.com). It could be different tech platform such as JSP/PHP/ASP. Here is index.jsp.
Notice: the variable urlC should be main.com/grAutoSize.htm.
- You don't need add document.domain = xxx.com for this solution. Also it was tested to working with IE7, IE8, Mozilla Firefox 3, Google Chrome 2, Safari 4.
4 comments:
Sounds very promising, but your picture files are so small, that it is impossible to read :-(
I fixed it. You are able to have a click to see detailed one for now.
would you be able post the code or provide a demo at least?
I'd like to upload the code file, but the blogger has not such function. Also it's really hard to demo this one because it's cross domain. Please contact me privately if you need them and I can send you the sample.
My contact email: teddyyu@live.com
Post a Comment