sample code pasted from editable example page not working on live.datatables.net

sample code pasted from editable example page not working on live.datatables.net

pubstatvoidmainpubstatvoidmain Posts: 4Questions: 0Answers: 0
edited January 2013 in General
I took the code from

http://datatables.net/release-datatables/examples/api/editable.html

and pasted into in the live site

http://live.datatables.net/ocukes/2

but the table cells are not editable.

I even changed the url to point directly at the page

http://datatables.net/release-datatables/examples/examples_support/editable_ajax.php

but still it doesnt work?

Can anyone help?

thanks!

Replies

  • psspss Posts: 19Questions: 0Answers: 0
    edited January 2013
    Hi pubstatvoidmain,

    Reason for that is you are missing this line of code:
    [code][/code]

    Here is updated test case:
    http://live.datatables.net/ocukes/3

    Cheers.
  • essexstephessexsteph Posts: 57Questions: 0Answers: 0
    You didn't include the jeditable source file (from http://www.appelsiini.net/download/jquery.jeditable.js).

    I've updated your live example with it and it now works:

    http://live.datatables.net/ocukes/4/edit#preview

    Note that the url you pointed at the example page is for saving the changes, you'll need to write your own - have a look at the jeditable website (http://www.appelsiini.net/projects/jeditable) for what gets sent to the server.

    Steph
  • pubstatvoidmainpubstatvoidmain Posts: 4Questions: 0Answers: 0
    Thanks for all your help folks.
This discussion has been closed.