Jump to content

iFrame to Table intergration Problem


dewbie

Recommended Posts

Hey, im working on a large site with multiple pages and updates to parts of each page daily, so its only practical to have the bits that need updating as iFrames (so I only have to update 1 html page, instead of 20).

The site is designed using tables. There is a standard Navigation bar, and what im trying to achieve is when you click (for example) "[b]Roster[/b]" on the navbar, then one of the tables on that page (for example tableID "[b]RosterTable[/b]" will display the iFrame "[b]roster.htm[/b]" in the table "[b]RosterTable[/b]".

I thought it would be a case of changing the button property for "target" to something like "RosterTable" (the id of the table) and the sourse being some sort of <iframe> code... but it doesnt work.

Is it possible to do this? If so.. how!

I apreciate any help on this matter

[a href=\"http://www.dewbie.plus.com/kk/\" target=\"_blank\"]Here[/a] is the web site so you can visualise what im trying to do.
Link to comment
Share on other sites

  • 2 weeks later...
If it is a button (as in an input button):

[code]<input type="button" value="Roster" onclick="document.getElementById('iframeId').src='roster.htm'" />[/code]

Where 'iframeId' is the ID of the iframe you want to change.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.