本文介绍了$(&## dialog")。dialog(" open")无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! Hai All, $(#dialog)。dialog(open);是不是在一个页面上工作 我在同一个项目中的另一个页面中实现了这个功能。工作正常但它在其他页面中不起作用.. 我的代码如下所示Hai All, $( "#dialog" ).dialog( "open" ); is not working in one page I implemented this function in one another page in the same project.its working fine but It not working in other page..My code shown as follows<div id="divAlert">Your session will expire in another 1 minute(s)! Please respond before the session expires</div><script language="javascript" type="text/javascript" charset="utf-8"> $("#divAlert").dialog({ width: 400, height: 150, autoOpen: false, modal: true, resizable: false, autoResize: true, close: function () { } });var authorized = "<%= HttpContext.Current.User.Identity.IsAuthenticated.ToString().ToLower() %>"; if (getAbsolutePath().toLowerCase() == 'sessionexpired.aspx') { authorized = "false"; //alert(authorized); } if (authorized == "true") { var sessionTimeoutWarning = "<%= Session.Timeout %>"; sessionTimeoutWarning = sessionTimeoutWarning - 1; var sessionTimeout = "<%= Session.Timeout %>"; var sTimeout = parseInt(sessionTimeoutWarning) * 60 * 1000; setTimeout('SessionWarning()', sTimeout); function SessionWarning() {// var message = "Your session will expire in another " + (parseInt(sessionTimeout) - parseInt(sessionTimeoutWarning)) + " minute(s)! Please respond before the session expires";// alert(message); $("#divAlert").dialog("open"); }</script> 这个问题是什么.. 。?请尽快帮助我 谢谢Advnc Aatif Aliwhats the prblem ...? Please Help me asapThanks AdvncAatif Ali推荐答案<div id="divAlert">Your session will expire in another 1 minute(s)! Please respond before the session expires</div><script language="javascript" type="text/javascript" charset="utf-8"> 这个问题是什么.. 。?请尽快帮帮我 谢谢Advnc Aatif Aliwhats the prblem ...? Please Help me asapThanks AdvncAatif Ali 这篇关于$(&## dialog")。dialog(" open")无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-11 00:20