CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Strike through by checking check box

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.