Forum Moderators: open

Message Too Old, No Replies

multiple iframes and related

         

tleilaxu

3:12 am on Jun 30, 2003 (gmt 0)

10+ Year Member



just discovered this site in my quest for iframe information, and after briefly browsing the forums, it is obvious to me that i am no webmaster! well, by comparison... =)

may or not be related : my browser = netscape 7.02

is there a limit on the amount of iframes that will be workable in one main page? i have 29 all loaded on the page at one time (various sizes + funxions). one iframe linx to the next (loads a url in targeted iframe), and i'm finding that certain ones just won't work. i have them correctly target linked and named (all unique), but some hyperlinx will open up a new window as if it is not recognizing the name of the iframe that it is supposed to link to.

and

is it possible for one hyperlink to activate (link to) multiple different urls in separate iframes on the same main page, simultaneously? what i'm imagining is a function like the a href tag, but with a list of targets and urls.

thanx for any effort directed my way!

tedster

7:26 am on Jun 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, tleilaxu.

On your first question, have you 1. eliminated typos and 2. validated your page with the W3C [validator.w3.org]? If so, then you may indeed have run into a browser limit, but in this case, I wouldn't be too quick to make that conclusion.

Nevertheless, there definitely are all kinds of practical limits built into browser code by necessity - pixel limits on padding, <img> dimensions, and much more. We usually don't use those extreme situations and so we don't see them.

is it possible for one hyperlink to activate (link to) multiple different urls in separate iframes on the same main page

Not with straight HTML, but with javascript multiple targets are possible. Here's a simple case, with just two target iframes names numberOneIframe and numberTwoIframe:

function doTwo(pageA,pageB)
{
(numberOneIframe.location=pageA);
(numberTwoIframe.location=pageB);
}

And the script for the link:

<a href="javascript:doTwo('page1.html','page2.html')">Change Two iFrames</a>

That one link should load page1.html into numberOneIframe and load page2.html into numberTwoIframe.

tleilaxu

12:07 am on Jul 3, 2003 (gmt 0)

10+ Year Member



this is the first time i have seen the validator, and i spent a little bit of time putting in the necessary declarations and related tags to get my page validated. + + +

thanx for the javascript, it will be very useful. i just wanted to post here so you don't think i never paid attention to yr response, or didn't care enough to respond... i appreciate it. i have yet to test and see if my targeted linx to certain iframes have begun to work, i will in the near future...