Click to See Complete Forum and Search --> : opening a page framed from a link


jaczura
10-06-2003, 06:48 AM
Hi!

My question is how to open a page with 3 frames (upper, lef, right) as a new window when clicking on a link.

So the framset of the new page with 3 frames is always the same but according the links I clicked, the content of the frames should change.

In the same framed window I can use:

<SCRIPT language="javascript">
function loadLinks(cUrl1,cFrame1,cUrl2,cFrame2,cUrl3,cFrame3) {
parent.frames[cFrame1].location = cUrl1
parent.frames[cFrame2].location = cUrl2
}
</SCRIPT>
<A href="javascript:loadLinks('../xxx.html','left','../yyy.html','right','../zzz.html',upper')">link1</a>

but how to use it to open a new window and set its content?

Thans for your reply!

Jac from Hungary

Charles
10-06-2003, 06:59 AM
1) 13% of users do not use JavaScript so it's important to make sure that your link works for those good people. Save your frameset with a new name and change the value of the FRAME element's "src" attributes to reflect each state to which you will want a link. And then link to those framesets. This will also solve for the problem with frames that others cannot link to a particular state.

2) The "language" attribute was depricated back in 1997.

3) On top of the 13% who do not use JavaScript, countless others block popups. Make sure that you open your popup thusly..

<a href="someFrameset.html" onclick="window.open(this.href, 'child', 'height=400,width=300'); return false">Link</a>

If you ever find yourself using the "javascript" pseudo scheme in a URL then you are in trouble.