/    Sign up×
Community /Pin to ProfileBookmark

how to wait and then act ….

Hi,

On my page, I have a table with 3 columns. The important one is located in the center, the others being helping pictures. I would like the “important” column to load first. I figured that one needs to define the table size in height and width. This is done. I also thought that iframes would be best for the side colums. This is done. But I cannot figure how to specify that the first column content should load first and then, and only then, the side iframes…

any idea ? Thanks in advance !

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisApr 11.2007 — Leave the iframe SRC attribute empty. Create an onload event handler to fill the iframe SRC attributes. Then the native html will have to finish before the iframes know what is happening.
Copy linkTweet thisAlerts:
@patimagesauthorApr 11.2007 — Leave the iframe SRC attribute empty. Create an onload event handler to fill the iframe SRC attributes. Then the native html will have to finish before the iframes know what is happening.[/QUOTE]

wahhooo... you are too good for me ... Leaving the iframe src empty, I get it. But how to create an "onload event" and where to place it ? At the very end? could you spare a couple of minutes and give me a tinny exemple ?

thank you so much !!!!!!!!!!!!!!!!!!!!!!!!
Copy linkTweet thisAlerts:
@gil_davisApr 11.2007 — Place it in the <BODY> tag.&lt;script type="text/javascript"&gt;
function changeIframeSrc() {
document.getElementById("iframeID").src = "http://www.whatever.com";
}
&lt;/script&gt;
...
&lt;body onload="changeIframeSrc()"&gt;

You may have to use the window object instead:
window.top["iframeID"].location.href = "http://www.whatever.com";
Copy linkTweet thisAlerts:
@patimagesauthorApr 11.2007 — thank you so much man !!!!!!!!!!

really nice and efficient !!!!!

love uuuuuuuuuuuuuuuuuuuuu!!!
×

Success!

Help @patimages spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...