English 中文(简体)
Modal dialog 盒子在提交时不正确工作——寄回自去
原标题:Modal dialog box not working correctly on submit - page posting back to itself

我先问这个问题,然后其他员额可能关闭。 但是,我没有得到完全正确的答案,这在法典中似乎总是没有。 我需要提交电子邮件,获得一个模式箱(有确认的圆顶),在3秒后可使用该模式,在成功提交后,又装上另一页。

基本上,模式箱的铺得太快。 我要放慢。 兹建议我删除。

</form><form> 

标签。 虽然在我撤除这些标签时,模式确实放慢,但现在我没有在提交文件后获得“欢迎”页面。 这页似乎只是背后,而不是提交。 我在努力工作五天,我不知道我干什么错了。 我赞赏所有答复。 感谢。

我的守则是:

<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js">
</script>
<script src="http://recp.rm04.net//ui/library/formValidate.js" language="javascript">
    </script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-
  lightness/jquery-ui.css" rel="stylesheet" type="text/css">

<STYLE TYPE="text/css">
     BODY, .BODY, TD
     {  color: ;
        font-size: ;
        font-family: ;
        font-weight: ;
        text-decoration: ;
        font-style: ;
     }
     </STYLE>
</head>
<body vlink="" alink="" link="" bgcolor="">
<!--  demo -->
<div class="demo">
<div id="dialog" title="Basic dialog">
<p>Email submitted successfully.  Thank you for signing up!</p>
</div>
</div>

<!-- End demo -->
<br>
<br>
<table border="0" cellspacing="0" cellpadding="5">
<form name="form" method="post" action="http://links.mkt41.net/servlet/UserSignUp?
f=755449&postMethod=HTML&m=0&j=MAS2">
<tr>
<td valign="top"><span style="color:#CC0000">*</span></td><td valign="top"
align="left">Email:</td>
<td><input type="hidden" name="EMAIL_REQUIRED" value="T"><input type="hidden" 
name="EMAIL_DATATYPE" value="email"><input type="text" name="EMAIL" value="" 
maxlength="4000"></td>
</tr>
</form>
<form>
<tr>
<td align="center" colspan="3">
<div id="opener">
<input type="button" name="submit" value="Submit" onClick="f_validateForm()"></div>
<script src="js/modal_e-confirm.js" language="javascript"></script>
</td>
</tr>
</form>
</table>
<p>
</p>
<script>f_initializeForm();</script>
</body>
</html>

这里,我曾帮助Rusty Jeans在SO这里。

$( form ).submit(function (e) {
e.preventDefault();
$.post( http://links.net/servlet/UserSignUp?
f=755449&postMethod=HTML&m=0&j=MAS2&EMAIL_REQUIRED=T&EMAIL_DATATYPE=email , {
        EMAIL: $( input[name=EMAIL] ).val()
    },
    function (data) {
        $( "#dialog" ).dialog( "open" );
    });
});

$( "#dialog" ).dialog({
  autoOpen: false,
  show: "fade",
  hide: "fade",
  open: function(event, ui) {
    var dlg = $(this);
    setTimeout(function(){
    dlg.dialog("close");
    },
    3000); 
  },
  modal: true,
  opacity: 1
});
最佳回答

经过大量调查,我发现,有1 .php的文字正在装上欢迎的网页。 我并不了解购买力平价,但这一行动影响到我的模式流行行为。 一旦消除了这一欢迎的页面功能,该模式即按预期运作。

问题回答

暂无回答




相关问题
Activating Modal Windows after switching to an application

We have a C# application which contains both modal and non-modal windows. It is possible for a user to have several non-modal windows open and open a modal window from one of these. If the user ...

JQuery Close Event remove class from table row

I currently have a table with rows that contain a clickable link. When a user clicks a link from any table row JQUery s UI Modal DIalog popups up and i add a class to the clicked links parent tr ...

C# CancelButton closes dialog?

(VS2005, .Net 2.0) I have a form that is displayed as a dialog using the ShowDialog() method. The form s CancelButton property is set to a button on the form. Even if I set that button s DialogResult ...

jQuery UI modal dialog not blocking

I am new to javascript and jQuery. I am trying to implement a modal dialog using jQuery UI widgets. The modal dialog shows up correctly with OK and Cancel buttons, but the dialog( open ) function ...

jQuery val(val) is not working in modal dialog (jQuery ui)

I have a modal dialog which opens on click of Edit button of my webpage. I am passing the values to the onclick handler (which calls $("#editdialog").dialog( open );). Beside opening the dialog I need ...

Run a modal dialog on a non-UI thread

I m writing a simple data UI using standard .Net databinding to a typed DataSet from SQL Server. I have a reload button which calls Fill on all of the DataAdapters to get new data from the database (...

Ajax 装饰

在我从服务器中抽取实际内容时,我想显示装货。 我知道,如果只是这样,如何做到这一点。 我面临的问题是,我要以这种装饰方式表明......。

热门标签