星期三, 5月 04, 2011

[JQuery Plugin] Apprise 對話視窗

跳出輸入方框視窗
input:true設定是否要顯示輸入框
r:為輸入的值
apprise("Change " + ctlName + " password?", {"verify" : true,"input":true}, function(r) {
    if (r) {
     console.log("user clicked Yes");
     if(typeof(r) == "string"){ 
      console.log("new password:" + r);
      $.changePassword({
       uid:ctlName,
       oldPassword:"admin",
       newPassword:r,
       callback:changePasswordEventHandler
      });
     }
    } else {
     console.log("user clicked No");
    }
   });
Reference:
Apprise
The attractive alert alternative for jQuery

沒有留言:

張貼留言

留個話吧:)

其他你感興趣的文章

Related Posts with Thumbnails