Forum Moderators: open
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!
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.
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...