Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Changing table contents dynamically (and on the client)

Reply
Thread Tools

Changing table contents dynamically (and on the client)

 
 
decoy@system102.com
Guest
Posts: n/a
 
      03-19-2006
Hi everyone,
Does anybody know how I can achieve the following?

I have a table that displays some information in plain text, on each
row I have an edit button that will allow the user to enter new values
for this row (basically display the same information as before but in
text boxes with the edit button replaced with a confirm button). When
the user has updated I would like to go back to the plain text view
with the new values.

Now comes the hard part

I want to do all of this clientside, allowing the user to click on a
save button when they have editting that will re-enter all of the
information back to the DB.

Sample code would be greatly appreciated!

Thanks in advance,

Stu.

 
Reply With Quote
 
 
 
 
Roy Schestowitz
Guest
Posts: n/a
 
      03-19-2006
__/ [ ] on Sunday 19 March 2006 12:00 \__

> Hi everyone,
> Does anybody know how I can achieve the following?
>
> I have a table that displays some information in plain text, on each
> row I have an edit button that will allow the user to enter new values
> for this row (basically display the same information as before but in
> text boxes with the edit button replaced with a confirm button). When
> the user has updated I would like to go back to the plain text view
> with the new values.
>
> Now comes the hard part
>
> I want to do all of this clientside, allowing the user to click on a
> save button when they have editting that will re-enter all of the
> information back to the DB.
>
> Sample code would be greatly appreciated!
>
> Thanks in advance,
>
> Stu.


Have a look at the following:

http://www.scheinwelt.at/~norbertf/devel/websheet/

Demo here:

http://www.scheinwelt.at/~norbertf/devel/websheet/demo (Password is 'demo')

The project is Open Source (LGPL). Data is stored in semi-colon-delimited
text. No database therefore.

Best wishes,

Roy

--
Roy S. Schestowitz | Useless fact: 21978 x 4 = 21978 backwards
http://Schestowitz.com | SuSE Linux ¦ PGP-Key: 0x74572E8E
1:00pm up 11 days 5:37, 11 users, load average: 1.50, 2.03, 1.93
http://iuron.com - help build a non-profit search engine
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding contents on yaml file without overwriting actual contents Kamarulnizam Rahim Ruby 4 01-28-2011 09:10 AM
if innerHTML used twice then it replaces the contents i want it to display all the contents virendra.amritkar@gmail.com Javascript 0 06-29-2007 08:13 AM
Contents vanish when changing opacity of table (IE) chris@chrisbeach.co.uk Javascript 1 11-04-2005 12:28 PM
Can I restrict both attribute contents and element contents in schema Don Adams XML 1 03-05-2004 12:48 PM
Changing a html table when new data is entered into SQL table. Renie83 ASP General 1 07-09-2003 03:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57