Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Iframe loading problem

Status
Not open for further replies.

minli98

IS-IT--Management
Joined
Aug 30, 2005
Messages
178
Location
US
Hi,

I am not sure if this is a coldfusion issue, but I thought I will try it here first.

I have an iframe within the page. The iframe contains a form with a couple textboxes. When I load the page, I could see that the textboxes lag behind in loading (about half a second or so).

That in itself doesn't worry me, but my friend who tried it on a slower connection said clicking on a link that triggers a javascript action stops the iframe loading altogether. I can't replicate this because my connection is too fast for me to click on the link before the iframe loads up.

Any idea why it's doing so, and what can I do to reduce the lag (short of getting rid of the iframe)?

Thank you,
Min
 
Doesn't sound like a Coldfusion issue - is there a reason why the page in the iframe takes so much longer than the parent frame to load? If so you can use some cross frame scripting so that the links in the main page are disabled until the page in the iframe loads and fires its onload() event which you can then use to talk to the parent page and activate any problem links. Perhaps you should see if you can find a dial up connection to replicate the problem - what browser/platform version?
 
The iframe doesn't have that much processing (just one or two conditions plus a few variable settings), so it should not take too long to process. But it seems that when the page loads up the iframe will get load up the last. I am no expert in this, perhaps someone could verify that.

Anyway I was able to replicate this problem in Explorer (by reloading through the right click and quickly hit my javascript button). There is no problem in Firefox (the iframe still loads up even after I hit the Javascript button).

I will try your suggestion about using the frame onload event. Thanks for the tip.

Min
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top