”注册成功“的确认框,点击后跳转到相关业怎么实现。

[复制链接]
查看11 | 回复2 | 2009-3-18 08:52:25 | 显示全部楼层 |阅读模式
$(document).ready(function(){
$.formValidator.initConfig({
formid:"form1",
submitonce:true,
onerror:function(msg){
alert(msg);
},
onsuccess:function(msg){
//alert("$('#form1').formSerialize():"+$('#form1').formSerialize());
$.post('../reg.aspx?request=ajax&randomid='+Math.random(),$('#form1').formSerialize(),function (msg) {

alert(msg);

if(msg=="注册成功!"){

$('#form1').resetForm();

}
});
return false;
}
});
$("#userAccount").formValidator({onshow:"请输入帐户名",onfocus:"用户名为6-10个字符",oncorrect:"。。。。。。。。。。。。。。。。。。。。。
-------------------------------------------------------------
if(msg=="注册成功!") 这个确认框,如何点击时跳转到一个新的IE页面,而不是还停留在这个注册页。

回复

使用道具 举报

千问 | 2009-3-18 08:52:25 | 显示全部楼层
if(msg=="注册成功!"){ $('#form1').resetForm(); location.href = "abc.aspx"; // 这样就可以中转到abc.aspx了}...
回复

使用道具 举报

千问 | 2009-3-18 08:52:25 | 显示全部楼层
if(msg=="注册成功!"){ window.href="相关URL";} 这样不行吗...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行