Computing.Net > Forums > Web Development > iFrame Auto-Height Problems

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

iFrame Auto-Height Problems

Reply to Message Icon

Name: mmarcialis
Date: December 1, 2005 at 13:56:01 Pacific
OS: WinXP
CPU/Ram: 1ghz
Comment:

Hello, I'm having a bit of difficulty in getting an iFrame to display properly on my company's intranet site; specifically the iFrame will not automatically adjust to the height of the content within it. It simply stays at the same default size. When attempting the view the page on our intranet, I receive the following browser error:

Error: [Exception... "'Permission denied to get property HTMLDocument.body' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

I know it is not a problem with the Javascript I am using to have the frame auto-set it's height to the contents (as we've used it before), but I just cannot get it to automatically set the height.

Now, the intranet page with the actual iFrame is behind our company's firewall. However, the page in which it is pulling content into the frame itself is coming from a shared, public server (no firewall). I'm wondering if this might be causing the error given above, and possibly the reason why the frame won't automatically set the height. Do any of you know if the firewall is causing the error, or if it's a different problem altogether? Thanks for any assistance.



Sponsored Link
Ads by Google

Response Number 1
Name: crandall87
Date: December 9, 2005 at 11:32:09 Pacific
Reply:

personally i think you should not use frames ever! don't even use tables. learn css!

My Website


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: iFrame Auto-Height Problems

Alternatives to ifrane's? www.computing.net/answers/webdevel/alternatives-to-ifranes/1280.html

Cell Scrollbars www.computing.net/answers/webdevel/cell-scrollbars/3395.html

Footer positioning problem www.computing.net/answers/webdevel/footer-positioning-problem/1685.html