kenxran / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

how to send messages from server side when adding row #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
 2.0.6 windows 7

Please provide any additional information below.

i'm implementing the editable and i need to send a message to the user is the 
insert on mysql could not be done for some reason.
i donit understand what and how to return my onwn message anda abort the adding 
row. he does not add on table but add in the browser.
Please i'm despered
Thank you

Original issue reported on code.google.com by acar...@gmail.com on 18 Dec 2011 at 2:30

GoogleCodeExporter commented 9 years ago
Hi,

See 
http://code.google.com/p/jquery-datatables-editable/wiki/AddingNewRecords#Handli
ng_server_errors to send error to user, you will need to set status code of 
response to some error status and in that case plugin will show body as error 
message.
Otherwise see following example 
http://jquery-datatables-editable.googlecode.com/svn/trunk/custom-messages.html

Jovan

Original comment by joc...@gmail.com on 9 Feb 2012 at 9:21