Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe + radio button navigation 1

Status
Not open for further replies.

Wulfgen

Technical User
Dec 31, 2004
283
US
Hello All,

I have an iframe (id=RSIFrame name=RSIFrame) and have standard href links that work, but I would rather use radio buttons

the href is <a href=" target="RSIFrame">make RPC call</a>

and I've been trying this: <input name="feed" type="radio" onClick="javascript:location.href = this.value" value=" target="RSIFrame"> and I'm getting nowhere, I've tried lots of variants - mostly they seem to open in the same (parent) window and not the iframe grrr :-\

Also there will be about 15 buttons (horizontally) above the iframe and I'm naming them all "feed" so only one will be active onClick

Any suggestions or solutions out there?
 
Hi

Code:
<input name="feed" type="radio" onClick="[red]RSIFrame.[/red]location.href = this.value" value="[URL unfurl="true"]http://www.some_url.com"[/URL] target="RSIFrame">
And do not use the [tt]javascript:[/tt] pseudo-protocol in event handler calls.

Feherke.
 
Eeeh, sometimes I wonder how I get can stand upright - doh

Thanks Feherke!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top