You are not logged in.

#1 2005-08-20 23:37:51

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

html question

Yeah yeah, it's not a true programming question but I figured you guys could help. Basically, I have a html page with two iframes (named "leftframe" and "rightframe" in it). How do I get a link in "leftframe" to open up a page in "rightframe"? If I simply do

<a href="blah.html" target="rightframe">link</a>

it doesn't work, presumably because "rightframe" is defined on the parent page.

Thanks in advance..


I am a gated community.

Offline

#2 2005-08-20 23:56:06

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: html question

did you do something like this for the frame?

<HTML>
<HEAD>
<TITLE>Frames</TITLE></HEAD>
<frameset cols="25%,75%">
<frame name="leftframe" src="leftside_index.html">
<frame name="rightframe" src="rightside_index.html">
</frameset>
</HTML>

your code you provided above should go in the "leftside_index.html" file.

Offline

#3 2005-08-21 00:19:34

kth5
Member
Registered: 2004-04-29
Posts: 657
Website

Re: html question

or something like this might help, tho it's JS:

document.getElementsByName('myrightIframe')[0].src="http://url.org/file.html"

I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell

Offline

#4 2005-08-21 00:31:40

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: html question

god i'm such an idiot, nevermind. i had both frames listed as "rightframe". sigh. :oops:

someone delete this heh.. and thanks guys. i can't believe i actually spent 45 minutes trying to figure this out.


I am a gated community.

Offline

#5 2005-08-21 04:09:21

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: html question

heh. i spend almost an hour sifting through some obscure perl program trying to find an issue. found the fix in a spanish web forum (I don't read much spanish..so that was fun too), and the fix eventually amounted to deleting 3 characters.

that is one character per 20 minutes! w00t


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB