How to load ajax in jquery-dialogextend 2.0.4 -


am trying develop application user can select date , view transaction histories in pop on button clicked ajax called , return return inside pop. ref: http://romb.github.io/jquery-dialogextend/example.html

<div><button type="button" id="button">button</button></div>     <script>         $(function () {             var remoteurl = 'send.php';             var largeparams = {                 param1: $("#date").val()             };             $("#button").click(function () {                 $("#form").dialog({                     "title": "dialog title",                     "width": 640,                     "height": 480,                     "modal": true,                     "resizable": true,                     "draggable": true,                     "dialogclass": "ui-dialog-red",                     message: function (dialogref) {                         var $message = $('<div>loading...</div>');                         $.ajax({                             url: remoteurl,                             type: 'post',                             data: largeparams,                             context: {                                 dialongbox: dialogref                             },                             success: function (content) {                                 this.dialongbox.setmessage(content);                             }                         });                          return $message;                     },                     "buttons": {"ok": function () {                             $(this).dialog("close");                         }}                 }).dialogextend({                     "closable": true,                     "maximizable": true,                     "minimizable": true,                     "collapsable": true,                     "dblclick": "collapse",                     "minimizelocation": "left",                     "icons": {                         "close": "ui-icon-close",                         "maximize": "ui-icon-arrow-4-diag",                         "minimize": "ui-icon-arrowstop-1-s",                         "collapse": "ui-icon-triangle-1-s",                         "restore": "ui-icon-carat-2-n-s"                     }                 });             });         });     </script> 


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -