|
Posted by Gιrard Talbot on 04/08/07 04:07
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".
I would recommend a button, and not a text link for 3 reasons:
1- you are modifying the display of the current page
2- the default and normal action of a link is to load a new page, a new
resource into the current window. So, if javascript support is disabled,
then such default, normal and basic purpose/functionality of a link
should be preserved.
3- semantically speaking, your page requirements point to a command
button, not a text link.
> 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.
>
> i dont want to have server contact after "show details". the information
> should be already there in hidden rows.
> I think it should only be something like show/hide <tr>.
>
> But i dont know, how to do that.
>
> Thanks for any help on that,
> Martin Nadoll
Martin, that's easy to do. I'll ask you to include a credits note for my
contribution in the webpage and in the source code. Is that fair enough?
Do you agree?
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]
|