jquery - Show message on page after editing from jeditable plugin -
i working in mvc , using jquery.jeditable plugin.the editing working fine in grid.when update content in grid & click on enter edit post controller cllass called & returns string updated text.
i want show message somewhere else on page after update done.
[httppost]public string edit(formcollection collection) {..... // show success message on page other grid column ... return <updated column value>; }
if talking showing message after ajax call, show ;) problem?
// variant 1: alert(response); // variant 2: $.growlui("server response", response); // using blockui plugin // or other popup div information ajax http request
if return more 1 value, return them json-object, this:
return "{ updatedcolumnvalue: " + value + ", msgtext: '" + msgtext.replace("'", @"\'") + "' }";
if want show after postback, make usercontrol visible message diplayed.
Comments
Post a Comment