PDA

View Full Version : IFRAME SSI Troubles.



toykilla
05-21-2006, 12:57 AM
According to the script, it has been updated to fix the height issues with Firefox. However when I try to use it with FF 1.5.0.3 the height is very small. Works fine with IE.

Test page:
http://www.350z-tech.com/test.html

jscheuer1
05-21-2006, 05:24 AM
I've worked out a totally different solution:

http://home.comcast.net/~jscheuer1/side/iframe_test.htm

The script is linked to the pages that go in the iframe. Use your browser's view source to see the iframe pages' source as well as the top page's.

Here is a link to the script itself:

http://home.comcast.net/~jscheuer1/side/rzPIframe.js

jscheuer1
05-21-2006, 06:57 AM
Looks like your test page has other problems as well. Like the pages linked to the contained page seem to have 'break out of frames' code on them. In any case, I couldn't really test your test as clicking on a link made the iframe page go away.

toykilla
05-21-2006, 08:31 PM
Thanks. I could not get your script to work either. I am including a mediawiki page into an iframe. It works in IE, but not FF. So I need to know how I can get it to work under FF and I will be set.

jscheuer1
05-21-2006, 09:19 PM
I was afraid of something like that but didn't say anything as I wasn't sure, I still am not. I am assuming you mean a Wikipedia page.

You see, it doesn't matter what script you use, an iframe's content's properties cannot be accessed across two domains for the type of information required to accomplish this. Any apparent 'working in IE' is just a coincidence. The script had nothing to do with it.

Incidentally, if you mean Wikipedia, you could not have tried my script properly as it requires code be placed on the contained page and I doubt that you have that kind of access to the Wikipedia page you are linking to.

toykilla
05-21-2006, 11:52 PM
The wiki is hosted on my domain. So the iframes are pulling from the same domain as the call page.

jscheuer1
05-22-2006, 03:59 AM
You learn something new every day, what exactly is a wiki then and how does it differ from an ordinary page? Might not matter.

Your page that you are loading into the iframe is not a valid HTML page. It has no html, head or body tags. You could change this line:


dyniframe[i].height = dyniframe[i].contentDocument.body.offsetHeight+FFextraHeight;

to:


dyniframe[i].height = dyniframe[i].contentDocument.body.firstChild.offsetHeight+FFextraHeight;

and it might take care of it. Best thing is to have a valid document to load into the iframe.

djr33
05-22-2006, 04:20 AM
From what I know, John, wiki is just like wikipedia... a user-generated thing that expands with input.
Wikipedia is just a bunch of code, and the user submissions make the entries and the site work.
It's all automated.

Not sure if that's what this is... but that's a good guess, I'd say.