Topic awaiting preservation: Defininig with the click on the row (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: Zagreb, Croatia |
posted 09-10-2002 11:20
i've been doing a news script for a client, and they wanted that they can select entry for update or erasing with the click on the news. So firstly my idea was to make the whole news a link that is sending variable (something like this: $news = "<a href=\"news.php?id=$news_id\">$news</a>", but that had limitations because you had to click the text to select it. But if I would make whole row a link it would solve the problem. And here is the part of the final script. And when you select the news the background automaticly changes. |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-10-2002 11:33
The poster has demanded we remove all his contributions, less he takes legal action. |
Nervous Wreck (II) Inmate From: Zagreb, Croatia |
posted 09-10-2002 11:45
I just want to improve it a little bit so if anyone has idea. The script is running on the client's server but i will try to put it on my server. The purpose is to select the news for editing by clickin' a row in the table |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-10-2002 11:53
The poster has demanded we remove all his contributions, less he takes legal action. |
Bipolar (III) Inmate From: London, UK |
posted 09-16-2002 12:06
Nah... I'd say put the <a> tag around the <tr> if anything |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-16-2002 12:33
The poster has demanded we remove all his contributions, less he takes legal action. |
Bipolar (III) Inmate From: London, UK |
posted 09-16-2002 13:07
Bah, ok - I guess I should take more notice of that validator.... code: <td><a href=""><span style="width:150px;">link text</span></a></td>
|
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-16-2002 13:17
The poster has demanded we remove all his contributions, less he takes legal action. |
Bipolar (III) Inmate From: London, UK |
posted 09-16-2002 13:54
Hey, gimme a break - it's Monday morning (or it was) |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 09-16-2002 15:05
retro_One: I think the simple answer is to not make your whole news article a link - it is unnecessary and could prove pretty confusing - just add a small edit post link. Its the conventional way to go about things and I see no reason to go changing it for this. |