Hi all,
Am not sure if this is the right section of the forum where to post this..but let’s try.
I guess most of us know about the problems with the automatic resizing of an iframe depending on the length of its content, when the main page
and the “iframe” page come from different domains (typical cross domain exception).
So I’ll skip an introduction…
I have the main page, MainPage.asp, which comes from [url]www.sisulabs.com
which comes from another domain, [url]www.stealthmeasures.com
While trying to find a workaround, because I can (luckily in this case) access the source code of both websites, I have written some javascript
code that also in this cross domain case, can successfully (note to follow..) resize the iframe when its content changes, and what I like is
that all what I need to add to the “ExternalPage” loaded into the iframe, is one single line of code (the inclusion of a .js file coming from
[url]www.sisulabs.com
This javascript tries to resize directly the iframe on the onload event. If this throws a cross domain exception (being in ExternalPage.asp,
this javascript can only access [url]www.stealthmeasures.com)
iframe a page coming from the other domain ([url]www.sisulabs.com
Problem is: it works great in Internet Explorer (both 6 and 7), but in Firefox it looks like it is trying to load something (the status bar
displays “transferring data from www.sisulabs.com” which is the main domain) and does not resize the iframe.
The url where you can (hopefully) have a look is [url]http://www.sisulabs.com/MainPage.asp
Any ideas?
Many thanks in advance.