Allowing addition form params to be submitted with an update call

Allowing addition form params to be submitted with an update call

usbpaulusbpaul Posts: 2Questions: 0Answers: 0
edited July 2011 in General
Hi,

My setup:
DataTables 1.8.1
jquery.dataTables.editable.js 1.3

When deleting a row from datatables (using jEditable) the editable plugin mentioned above allows to specify extra parameters on the ajax request through its oDeleteParameters property.
When updating, there is no such possibilty, eg.

oUpdateParameters: {retrievalDate: 242255112141}

The editable plugin uses the fnUpdate from datatables directly. Would it be possible/useful to add such a property (oUpdateParameters) to datatables. I'm asking because I have the requirement that the service needs to do a staleness check on meta data before it can do an update. It needs the retrievalDate as fetched in the original request for that.

Cheers,
Paul

Replies

  • Danly_DanDanly_Dan Posts: 7Questions: 0Answers: 0
    So, after further looking around I found that the plugin has been updated further than what is available through the project's download page. Currently the download sits at 1.3 and not being familiar with Google's project system I did not follow how to find the latest version. Well, the plugin is now at 2.3.1 and is available at http://code.google.com/p/jquery-datatables-editable/source/browse/trunk/media/js/jquery.dataTables.editable.js.

    This latest version supports oUpdateParameters.
  • Danly_DanDanly_Dan Posts: 7Questions: 0Answers: 0
    I am interested in this as well. Despite the fact of oUpdateParameters being shown at http://jquery-datatables-editable.googlecode.com/svn/trunk/inline-edit-parameters.html I cannot get it to work.

    Any ideas on an implementation?
This discussion has been closed.