| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1748 人关注过本帖
标题:关于AJAX兼容问题。。。
只看楼主 加入收藏
hacowz
Rank: 1
等 级:新手上路
帖 子:68
专家分:0
注 册:2008-3-4
收藏
 问题点数:0 回复次数:2 
关于AJAX兼容问题。。。
RT,在用AJAX编写一些页面的时候,如提交页面,往往在IE下点提交无反应,在FIRFOX下却能顺利提交,这是为什么呢?难道是prototype兼容问题?
搜索更多相关主题的帖子: AJAX prototype FIRFOX 页面 编写 
2008-03-04 16:23
lmhllr
Rank: 8Rank: 8
等 级:贵宾
威 望:44
帖 子:1504
专家分:42
注 册:2005-5-12
收藏
得分:0 
prototype能很好的兼容多种浏览器

应该是自己代码的问题...帖出来看看.....
2008-03-04 17:11
hacowz
Rank: 1
等 级:新手上路
帖 子:68
专家分:0
注 册:2008-3-4
收藏
得分:0 
</tr>
                        </table></td>
                  </tr>
                    <tr>
                        <td height="30">&nbsp;</td>
                        <td width="161" align="left">&nbsp;</td>
                        <td width="237" align="left"><input class="btn_org" type="button" name="create_btn" id="btn_id" value="提   报" onclick="javascript:submit_form();" /></td>
                        <td width="13">&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    
                </table>



function submit_form()
{
    $('query_form').request({
      method: 'get',
      parameters: {action:'load_data'},
      onLoading  : loading_data,
      onComplete: function(transport)
      {  
          if (200 == transport.status)
        {
            alert(transport.responseText);
            $('listingpaginate').style.display="block";
            document.getElementById('waiting_data').style.display="none";
            document.getElementById('btn_id').disabled=false;
            out_put = transport.responseText;
            get_arr = out_put.split("$");
            if (get_arr[0]=="success_1")
            {
                $('listingpaginate').innerHTML="<font color='red'>提报成功,请及时定位激活该店!</font>";
                for(i=0;i<100;i++)
                {  
                    document.add_shop_msg_form.elements[i].value="";
                }
                document.getElementById('btn_id').value="提    报";
                document.getElementById('RelShopID').selectedIndex=0;
                document.getElementById('shop_pro_id').selectedIndex=0;
                document.getElementById('shop_place_id').selectedIndex=0;
            }
            else if (get_arr[0]=="success_2")
            {
                $('listingpaginate').innerHTML="<font color='red'>提报成功,该店已激活!</font>";
                for(i=0;i<100;i++){  
                    document.add_shop_msg_form.elements[i].value="";
                }
                document.getElementById('btn_id').value="提    报";
                document.getElementById('RelShopID').selectedIndex=0;
                document.getElementById('shop_pro_id').selectedIndex=0;
                document.getElementById('shop_place_id').selectedIndex=0;
            }
            else
            { // document.getElementById("RelShopID").innerHTML =  get_arr[1];
                $('listingpaginate').innerHTML=transport.responseText;
            }
            
            
            
        }
      }
    });
}
这个是 JS代码,改良后的,能运行
2008-03-04 17:21
快速回复:关于AJAX兼容问题。。。
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013928 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved