inline editing validation not work
inline editing validation not work
Hi to all,
i have try to use the editable plugin from this address.
http://code.google.com/p/jquery-datatables-editable/
http://jquery-datatables-editable.googlecode.com/svn/trunk/inline-validation.html
It work fine, but only inline editing validation not work.
I have add at end of next code my control validation cssclass="required" but if field is empty return a empty value and the server save a empty value.
Thanks in advance.
[code]
$(document).ready( function () {
$('#example').dataTable({
"sDom": 'T<"clear">lfrtip',
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "library/server_processing.php",
"aoColumns":[
{
"bSearchable" : false,
"bVisible" : true
},
{},
{},
{},
{},
{},
{},
{},
{
"bSortable": false,
"fnRender": function(oObj){
var id = oObj.aData[8];
return 'Allega | Dettaglio'
}
}
],
"bJQueryUI": false
})
.makeEditable({
sAddURL : "AddData.php",
sDeleteURL : "DeleteData.php",
sUpdateURL : "UpdateData.php",
"aoColumns" : [
{},
{},
{},
{},
{},
{},
{},
{cssclass: "required"},
null
]
});
[/code]
i have try to use the editable plugin from this address.
http://code.google.com/p/jquery-datatables-editable/
http://jquery-datatables-editable.googlecode.com/svn/trunk/inline-validation.html
It work fine, but only inline editing validation not work.
I have add at end of next code my control validation cssclass="required" but if field is empty return a empty value and the server save a empty value.
Thanks in advance.
[code]
$(document).ready( function () {
$('#example').dataTable({
"sDom": 'T<"clear">lfrtip',
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "library/server_processing.php",
"aoColumns":[
{
"bSearchable" : false,
"bVisible" : true
},
{},
{},
{},
{},
{},
{},
{},
{
"bSortable": false,
"fnRender": function(oObj){
var id = oObj.aData[8];
return 'Allega | Dettaglio'
}
}
],
"bJQueryUI": false
})
.makeEditable({
sAddURL : "AddData.php",
sDeleteURL : "DeleteData.php",
sUpdateURL : "UpdateData.php",
"aoColumns" : [
{},
{},
{},
{},
{},
{},
{},
{cssclass: "required"},
null
]
});
[/code]
This discussion has been closed.
Replies
Allan
Thanks Allan.
Allan
Could you provide me some online example? I have taken your HTML and simulated php page you used and is works fine. You can see online example on the http://jquery-datatables-editable.googlecode.com/svn/trunk/server_side_processing.html where you can edit first column, clear the text and error message will be shown when you try to submit the cell value.
Thanks,
Jovan