How to Have One Button open Two Pages in Different iFrames on the Same Page.
By Paul with comments by Frank
And, Paul added..........
you could also have a single button open 2 or more pages into separate iframes on the same page,
An example would be
<a href="page2.html" target="ifrm_1" onmousedown="parent.frames['ifrm_1'].location='page2.html';parent.frames['ifrm_2'].location='page3.html'; return false;" onClick="return false">TEXT</a>
Paul
Serif Forum Link Dual Use Button thread
And, Frank wrote:
One of my clients recently attempted to implement Pauls html code to have two separate pages open in two iframes on his website. He got into real difficulties because the changes worked perfectly on his local site preview, but just returned 404 Page not found errors in his iframes when published to the web.
After digging around in the site, I discovered the problem, and it was all to do with html file naming conventions.
In WebPlus, users can manually change the html filename of any page.
If the user uses Uppercase or mixed case characters, WebPlus is smart enough to change the names to lowercase letters when published.
However, when inserting html code – as in Paul’s dual button tip (which is excellent by the way), users must remember to use lowercase letters only when referencing the relevant pages – even if they used upper or mixed case when naming the pages. If they don’t, most web servers will not be able to find the referenced page and will return the 404 error.
As your tips and tricks page is aimed potentially at newbies, I think its worth adding a small addendum to any article that recommends hand coding html if it references html page names within the site.
Kind regards
Frank
Triselcommunications