dewbie Posted March 12, 2006 Share Posted March 12, 2006 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 https://forums.phpfreaks.com/topic/4740-iframe-to-table-intergration-problem/ Share on other sites More sharing options...
Gast Posted March 23, 2006 Share Posted March 23, 2006 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 https://forums.phpfreaks.com/topic/4740-iframe-to-table-intergration-problem/#findComment-19892 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.