Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7536849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:41:18+00:00 2026-05-30T06:41:18+00:00

I am using Jeditable, http://www.appelsiini.net/projects/jeditable And DataTables, http://datatables.net/download/ To try and make an live

  • 0

I am using Jeditable,

http://www.appelsiini.net/projects/jeditable

And DataTables,

http://datatables.net/download/

To try and make an live editable table but whenever I edit, it does not post the row ID that I am getting it from so I want to try and pull the right ID when you edit a column. However, no matter what I try it does not seem to get anything. Any ideas?

Code:

 $(document).ready(function() {

          var oTable = $('#example').dataTable( {
         "bProcessing": true,
        "bServerSide": true,
        "sAjaxSource": "scripts/getData.php",
        "fnDrawCallback": function () {
            $('#example tbody td').editable( 'examples_support/editable_ajax.php', {
                "event" : 'dblclick',
                "tooltip" : 'Click to edit.',
                "submitdata" : {id: $(this).parent().index()},
                "callback": function( sValue, y ) {
                console.log(sValue);
                console.log($(this).parent().index());
                console.log($(this).parent().find('td:eq(3)').html());
                    /* Redraw the table from the new data on the server */
                    oTable.fnDraw();
                },
                "height": "14px"
            } );
        }
        } );
    } );

In this particular example, submitdata returns 1 while the console.log in teh callback returns the correct info.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:41:20+00:00Added an answer on May 30, 2026 at 6:41 am

    Try wrapping the submitdata object in a function to keep this in scope…

        ...
        "submitdata" : function() {return {id: $(this).parent().index()}},
        ...
    

    It worked for me, hope that helps.

    Cheers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using http://www.appelsiini.net/projects/jeditable (jEditable JS Lib) in my Rails app's project and i found
I'm using the Edit-in-Place JQuery plugin, JEditable: http://www.appelsiini.net/projects/jeditable . I would like to use
I am using the Jeditable JQuery plugin to make edit in place changes to
I am using a jQuery jEditable edit-in-place field but when the JSON function returns
Using FullCalendar ( http://arshaw.com/fullcalendar/ ) to pull events from a MySQL database table via
I'm trying to make Jeditable works on new elements created using this jquery file
I'm using Tim Heuer's style to get an editable combo box from here: http://timheuer.com/blog/archive/2008/11/05/silverlight-editable-combobox-using-styles.aspx
I am using Datatables + jEditable to display data from my db and allow
I'm using datatables with the jeditable plugin, I have it setup to update directly
I am trying to make an editable box (kind of a richTextBox) using html5

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.