- 论坛徽章:
- 0
|
下面是jquery代码,
登录成功转向到新的url ,本机测试firefox ie都可以转向,放到服务器上firefox就不行了
不知道为什么- $('#sbm').click( function(){
- if (beforeSubmit()){
- $.post("http://localhost/twss/index.php/login/check_user", $('#form').serialize(), function(data) {
-
- if(data == 1){
- $loadingIndicator.show();
- window.location = "http://localhost/twss/index.php/frameset";
- }else if(data == 2){
- $('.error-msg').show();
- }else if ( data == 3){
-
- $loadingIndicator.show();
-
- $.messager.confirm('提示信息', '还没有注册过,是否进行注册?', function(r){
- if (r){
-
- window.location = "http://localhost/twss/index.php/registor";
- }
- });
-
-
- }else if ( data == 4 ){
-
- $.messager.confirm('提示信息', '非本单位教师,如要登录,请联系学院相关人员', function(r){
- if (r){
-
- window.location = "http://localhost/twss/index.php/login";
- }
- });
-
- }
-
- });
- }
- });
复制代码 |
|