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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Target to Iframe

Status
Not open for further replies.

dodge20

MIS
Joined
Jan 15, 2003
Messages
1,048
Location
US
I posted this in the fireworks forum, but that doesn't seem to get much traffic, so I thought I would try it here also.

Fireworks MX 2004

I have serveral dropdown menus where some of the pages should link to an iframe. My problem is that not all the pages are in frames - just the pages that use iframes to pull in another website. My other pages are created from a template.

My question is:
How do I link the dropdown menu to the correct page and also link the external site to my iframe?

So lets say my frames page is called Frameset.html. It contains 2 frames - TopFrame.html and content.html. In my fireworks dropdown, how do I link to frameset.html and target the content.html while pulling in the external link?

The only thing I can think of is, to create a seperate frameset for each iframe. But I would like a better solution if it is available.

Dodge20
 
So I assume I will have to change the html created by fireworks. Here is what is created:

Code:
mm_menu_0207134928_0_3.addMenuItem("Overview","window.open(' [URL unfurl="true"]http://www.externalsite.com/',[/URL] 'iframe');");

I need to change the target of 'iframe' to specify that iframe is the target on the page frameset.html.

Any ideas on how to make that happen? This works if I am already on the frameset.html, but coming from a template page, it doesn't know where the target 'iframe' is located.

Dodge20
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top