免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2961 | 回复: 0
打印 上一主题 下一主题

同样的jquery代码,本机测试firefox ie都可以转向,放到服务器上firefox就不行了? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-11-14 22:59 |只看该作者 |倒序浏览
下面是jquery代码,
登录成功转向到新的url ,本机测试firefox ie都可以转向,放到服务器上firefox就不行了
不知道为什么
  1.   $('#sbm').click( function(){
  2.         if (beforeSubmit()){
  3.       $.post("http://localhost/twss/index.php/login/check_user", $('#form').serialize(), function(data) {
  4.      
  5.           if(data == 1){
  6.                     $loadingIndicator.show();
  7.                 window.location = "http://localhost/twss/index.php/frameset";
  8.               }else if(data == 2){
  9.             $('.error-msg').show();
  10.                   }else if ( data == 3){
  11.                          
  12.                     $loadingIndicator.show();
  13.                
  14.                         $.messager.confirm('提示信息', '还没有注册过,是否进行注册?', function(r){
  15.                                 if (r){
  16.                                          
  17.                                         window.location = "http://localhost/twss/index.php/registor";       
  18.                                 }
  19.                         });
  20.                 
  21.              
  22.                         }else if ( data == 4 ){
  23.                        
  24.                         $.messager.confirm('提示信息', '非本单位教师,如要登录,请联系学院相关人员', function(r){
  25.                                 if (r){
  26.                                          
  27.                                         window.location = "http://localhost/twss/index.php/login";       
  28.                                 }
  29.                         });                       
  30.                        
  31.                         }
  32.                   
  33.       });
  34.         }
  35.   });
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP