Avatar of gaz1000
gaz1000
 asked on

Get cell table contents

Hi,

I'm looking to get the cell contents (only text) after I click on a row.

<tr onDblclick='newWindow()'><td>$asset_id</td>

If I double click on a row a new window opens as above....would it be possible to pass the contents of one of the cells into the new window so I can then read some from a database as one of the table cells holds the  primary key??

Thanks,

PHPJavaScript

Avatar of undefined
Last Comment
harrrrpo

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
nacker2000

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
nacker2000

Soz I meant copy the code, not code the code...!?
harrrrpo

I think u should try
<tr><td><a href=MyScript.php?aid=$asset_id>$asset_id</a></td>
and then collect it in MyScript.php from GET
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes