Newbie - help please

Newbie - help please

robbyirishrobbyirish Posts: 3Questions: 0Answers: 0
edited February 2012 in DataTables 1.8
Can anyone point me in the right direction of achieving the below? Kinda lost where to begin. I know most (if not all) these features exist already but I'm looking at implementing them all at once on the one table


1. load table with information from database
2. select an entry
3. a form is populated below the table with information from the selected row
4. I can edit the information and click save and it updates the information on the database
5. also lets me create new entry.

any ideas on where to begin would be extremely and profoundly helpful.

Replies

  • allanallan Posts: 63,691Questions: 1Answers: 10,500 Site admin
    Hi,

    1. How do you want to load your data - from an Ajax source, or DOM?

    2. http://datatables.net/release-datatables/examples/api/select_row.html :-). Also TableTools has a row selection API built into it if you want something more complete and with more options.

    3. Do you have the form in the HTML already? fnGetData is how you would get the data for the row.

    4. An Ajax request would be made to the server with the information, and there would need to be a server-side script to submit it to the db. What are you using on the server-side?

    5. This could piggyback on the script used for 4 - just do an INSERT rather than an UPDATE when required.

    Regards,
    Allan
This discussion has been closed.