|
Posted by Gιrard Talbot on 04/08/07 03:07
J.O. Aho a Γ©crit :
> Martin Nadoll wrote:
>> hello,
>>
>> i have a table with about 20 rows coming from a mysql database.
>> in the database i have text with details for every row.
>> i dont want to show all these details, only my other information.
>>
>> so, what i want to do is to make a textlink into every row "show details".
>> this details should appear in the next <tr> after the row i cklicked and all
>> following information should go down.
>> in the details-row i want to have a textlink "hide details" so that
>> everything looks like before.
>
> You may use a hidden div
A hidden div within a table imply invalid markup code.
> that you turn to a visible with a link, here is an
> example that uses form buttons to show/hide, but you can use onClick on a
> anchor instead.
>
> http://www.rgagnon.com/jsdetails/js-0086.html
The example is pretty old, not adjusted to the OP description.
GΓ©rard
--
Using Web Standards in your Web Pages (Updated Dec. 2006)
http://developer.mozilla.org/en/docs/Using_Web_Standards_in_your_Web_Pages
Navigation:
[Reply to this message]
|