![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
|
Ok, I typed out this long message trying to explain what I was attempting to get done. Good thing I realized that chances are I was confusing people. Let me make this as harmless as possible...
I need help with 2 scripts. The first one I want to loop to constantly check the size of the iframe. The script is as follows (and it works now, but doesn't loop): Code:
function resizeToContent(){
var x =0;
var y =dynamIframe.document.body.scrollHeight;
while (x < y){x+=1;}
this.document.getElementById("dynamIframe").style.height=x+10}
The second work-around that I'm trying to get accomplished (one of these 2 will be better) is the same code as above, except that I want it to check the parent document's iframe as well. The parent document's iframe will have the same ID. I know it will work because I'm using it now with both iframes (an iframe within another). The problem is that when the content in the sub-iframe changes the iframes won't resize. I can't modify the file that is being loaded into the sub-iframe, therefore, the loop has to be called by the page loaded inside the mainpage (the one that contains the sub-iframe). Any help is greatly appreciated! If you can only help with one and not the other, that's fine. -Enoctis |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#3 (permalink) |
|
Registered User
|
i have an iframe within an iframe in a design im working on. why? because the first iframe is for the content on my page, while the second contains a bulletin board. i don't want the bulletin board opened in a seperate window, or to replace the mainpage. furthermore, i know that i could eliminate the second (sub) iframe and have the bulletin load in the mainpage's iframe. BUT i want to have other info on the mainpage. the iframes are necessary for the layout i have designed.
but that's not the real problem. the problem is that when the page loads it resizes the iframe (both, actually) to the content within. that's fine & dandy until they click a link inside the iframe. the new content loads - hooray! - but the iframe never resizes... |
|
|
|
![]() |
| Thread Tools | |
|
|