Cleopatra
Posts: 73
|
| Posted: 06/22/2010, 10:10 AM |
|
I have an editable grid with messages,
how can i strike through the rows when the message is read by simply checking the check box.
I do not want to delete the messages from the database.
something like a to-do list and when a task is done you can strike it out.
I would like to do this with java script, but I'm not really familiar with it.
I can't add columns as suggested by someone in another post, because of an constraint placed on the table.
So how could I do this.
_________________
php newbie |
 |
 |
magus
Posts: 98
|
| Posted: 06/26/2010, 4:22 AM |
|
Hello Cleo,
Unless you record the status somewhere the strike through will reset on each page refresh.
If you can't add a column perhaps you can add a table and join it to your main table to record status?
You could use a checkbox/or a toggle hyperlink with javascript to a service page to record changes to the status.
You could define a class with "text-decoration: line-through;" and perhaps apply it to the <tr> of the row you want to strikeout. This could be done when the page is generated for rows requiring such, and via javascript connected with your ajax service page call.
You will need to make the ajax/javascript row aware. This may be fiddly but will be achievable.
Good luck.
Please let us know how you get on.
Regards,
Don A
|
 |
 |
Cleopatra
Posts: 73
|
| Posted: 06/29/2010, 4:50 AM |
|
Thank you so much Don A, for your suggestions.
I'll try it out.
_________________
php newbie |
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 08/15/2010, 8:22 AM |
|
Cleopatra,
Has this issue been resolved?? If so, please add [Resolved] or [Solved] to thread title. Thanks.
|
 |
 |
|