如何锁定对话框警报的背景 [英] How to lock the background of dialog alert

查看:71
本文介绍了如何锁定对话框警报的背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我试图让下面的对话框阻止背景,直到点击按钮。

  function  ShowPendingTimeoutDialog(){
diag.dialog({
autoOpen: false
title: 会话即将到期
职位:{my: center center,at: center centre,of: # pagecontainer},
closeText: hide
可调整大小: false
draggable: false
modal: true
按钮:{
继续: function (){
ResetTimeout();
}
}
});



任何想法?

解决方案

< blockquote>问题不是很清楚,但很多细节,锁定背景的概念,像graggable和modal这样的词,按钮的定义,告诉我你正在尝试做我最近实现的和发表在我的文章 Modal Popup From Scratch



我提供了完整结构化的源代码和详细的使用示例,解释了主要想法(是的,关于锁定背景),并解释了实现的微妙时刻,但细节。希望你会喜欢它。



-SA


Hi,

I am trying to make the below dialog blocks the background until the button is clicked.

function ShowPendingTimeoutDialog() {
    diag.dialog({
    autoOpen: false,
    title: "Session About to Expire",
    position: { my: "center center", at: "center center", of: "#pagecontainer" },
    closeText: "hide",
    resizable: false,
    draggable: false,
    modal: true,
    buttons: {
              Continue: function() {
              ResetTimeout();
                                   }
             }
    });


Any Ideas?

解决方案

The question is not very clear, but many details, the notion of locking the background, words like "graggable" and "modal", definition of buttons, tell me that you are trying to do what I've implemented very recently and published in my article Modal Popup From Scratch.

I provided full neatly structured source code with detailed set of usage samples, explained the main idea (yes, about "locking the background"), and explained just the delicate moments of implementation, but in fine detail. Hope you will like it.

—SA


这篇关于如何锁定对话框警报的背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆