Thundarfoot Posted February 3, 2008 Share Posted February 3, 2008 I am working on a php page I have a generated table with the output from a query. the table only takes up about half the page. The last column of the table contains a small icon, icon links to another .php page My question is instead of opening that icon link in a new page or window, could I open in inside a cell of a table or something? There is a lot of wasted space beside the query table, I would like to use to display the contents of the icon link.... is this possible? Thank you Quote Link to comment https://forums.phpfreaks.com/topic/89274-solved-tables-and-links/ Share on other sites More sharing options...
ratcateme Posted February 4, 2008 Share Posted February 4, 2008 you could use iframes and javascript to change the width of the frame so it fits the page you want to come up Scott. Quote Link to comment https://forums.phpfreaks.com/topic/89274-solved-tables-and-links/#findComment-457188 Share on other sites More sharing options...
mikefrederick Posted February 4, 2008 Share Posted February 4, 2008 or, you could use javascript. example: make a <span> and put everything that you want to show up on the other php page in that span. do <span style='display:none' id='nextpage'> for the icon, do onclick="document.getElementById('nextpage').style.display=''" and then when you click the icon the span will show up. and if you want the rest of the page to disappear, make another span around all of that content and add another line to the previous onclick function that changes the display to none when you click the icon. Quote Link to comment https://forums.phpfreaks.com/topic/89274-solved-tables-and-links/#findComment-457194 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.