...

View Full Version : updating a cell with fnUpdate from datatables jeditable



Anag
09-06-2011, 08:38 PM
We use datatables on our site which displays data from a MySQL database, we just installed jeditable for inline editing, when a user updates a field the database is updated but the cell doesn't refresh displaying the new data. Our initialization code is below, any help is appreciated



$(document).ready(function() {

oTable3 = $('#links').dataTable( {
"sDom":'t<"bottom"ifpl><"clear">',
"bAutoWidth": false,
"sPaginationType": "full_numbers",
"aoColumns": [
{ "bSortable": false},
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
]

}
).makeEditable({
sUpdateURL: "<a href="http://domain.com/account/profiles/updatelinkvalue%22" target="_blank" rel="nofollow">http://domain.com/account/profiles/updatelinkvalue"</a>,
"aoColumns": [
null,
null,
{
//indicator: 'Saving Engine Version...',
tooltip: 'Click to change link status',
loadtext: 'loading...',
type: 'select',
onblur: 'submit',
submit: 'Ok',
loadurl: '<a href="http://domain.com/account/profiles/engineversionlist%27" target="_blank" rel="nofollow">http://domain.com/account/profiles/engineversionlist'</a>,
loadtype: 'GET',
sUpdateURL: "<a href="http://domain.com/account/profiles/customupdateenginevalue%22" target="_blank" rel="nofollow">http://domain.com/account/profiles/customupdateenginevalue"</a>;
},



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum