EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: BinaryCode on July 23, 2015, 07:57:07 PM



Title: Messenger Problem
Post by: BinaryCode on July 23, 2015, 07:57:07 PM
Quote
  $.messager.progress();
    pbHandler = $.ajax({
        url: 'php_script/report/report_trip.php',
        type: 'POST',
        dataType: 'json',
        data: data,
        success: function (objects)
        {
                
        }
       }).always(function () {
           console.log("complete");
           $.messager.progress('close');
      });

alwaays get error:

jquery.easyui.min.js:3925 Uncaught TypeError: Cannot read property 'onClose' of undefined

when twich call ajax, messenger won't closed


Problem Solve

Quote
when tile or msg set, problem gone!!!
 $.messager.progress({
            title:'Please waiting',
            msg:'Loading data...'
         });



Title: Re: Messenger Problem
Post by: stworthy on July 23, 2015, 11:57:18 PM
Please call $.messager.progress({}); instead, or download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.3-patch.zip.