EasyUI Forum
May 02, 2024, 11:02:55 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Poll
Question: how fix this bug?
1 - 0 (0%)
2 - 0 (0%)
Total Voters: 0

Pages: [1]
  Print  
Author Topic: the alert callback bug  (Read 24420 times)
l3917055
Newbie
*
Posts: 11


View Profile Email
« on: September 17, 2012, 11:02:56 PM »

when I use alert callback  like this
         $.messager.alert("提示", "保存成功", "info", function(){ $.messager.progress("close")});

when the callback is fired, will display such a error message "Uncaught TypeError: Cannot read property 'options' of undefined"

why? and  how to fix it
Logged
l3917055
Newbie
*
Posts: 11


View Profile Email
« Reply #1 on: September 17, 2012, 11:06:39 PM »


$.ajax({
            url: $$.getRootPath() + currentPath + 'SetProxyUser',
            cache: false,
            type: "post",
            data: { userIds: userIds.join($$.splitor), goodsOwnerID: goodsOwnerID },
            beforeSend: function () { $.messager.progress("close"); },
            error: function () { $$.progressEnd(); },
            success: function (result) {
                if (result.Success) {
                    $.messager.alert("提示", "保存成功", "info", function(){ $.messager.progress("close");});
                }
                else {
                    $.messager.alert("提示", "保存失败" + result.Message, "info", function(){$.messager.progress("close");});
                }
            }
        });
Logged
l3917055
Newbie
*
Posts: 11


View Profile Email
« Reply #2 on: September 17, 2012, 11:10:33 PM »

I'm using easyui 1.3.1
Logged
l3917055
Newbie
*
Posts: 11


View Profile Email
« Reply #3 on: September 18, 2012, 12:33:40 AM »

this condition not awlays heppen.
only when I use  a dialog

$("#popupProxyUser").dialog({
                href: url,//this url is a other page which i find the alert callback bug
                title: "代理用户",
                width: 600,
                height: 500,
                modal: true,
                closed: false,
                cache: false
            });
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!