Jump to content

[SOLVED] tables and links...


Thundarfoot

Recommended Posts

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

Link to comment
Share on other sites

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.

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.