iframe targeting, can't get it to work

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
undertow
Beginner
Beginner
Posts: 1
Joined: Wed Nov 13, 2002 5:42 pm

iframe targeting, can't get it to work

Post by undertow »

I'm having trouble getting my menu links to open in my iframe. I'm using IE6.

My iframe code:
<iframe id="main" name="main" src="pcx_main.htm" width="100%" height="100%" frameborder="0"></iframe>

My menu's target code:
,"Restaurants Downtown","../restaurants.htm target=main",,"",0

The link opens in a new window instead.

Here's the site: http://pcx.radicalteacher.com/Brian/

Thanks,
Brian
Joost
Beginner
Beginner
Posts: 2
Joined: Tue Nov 12, 2002 6:14 pm

Post by Joost »

This should be the menu's target code: ,"Restaurants Downtown", "javascript:openIFrame(\"main\", \"restaurants.htm\")",,,0

Plus put this script on your page(s):

<script language=javascript>

function openIFrame(iFrameId,winURL)
{
ifId=gmobj(iFrameId)
ifId.src=winURL
}

</script>

That will work !

Greetz,
Joost
Post Reply