的prototype.js 1.6.0.3 Ajax.Updater的不工作在IE7或IE8。请帮助! [英] prototype.js 1.6.0.3 Ajax.Updater not working in IE7 or IE8. Help Please!

查看:114
本文介绍了的prototype.js 1.6.0.3 Ajax.Updater的不工作在IE7或IE8。请帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这适用于所有其他浏览器...但没有在IE7和放大器; IE8。请帮助!

 < HTML>
< HEAD>
< META HTTP-当量=内容类型内容=text / html的;字符集= UTF-8/>
<脚本的src =/ JavaScript的/的prototype.js类型=文/ JavaScript的字符集=utf-8>< / SCRIPT>
< /头>
<身体GT;
<输入类型=按钮值=阿贾克斯测试的onclick =VAR myAjax =新的Ajax.Updater('TestContent','/存储/家',{方法:'后',参数:'富=酒吧' }); />
< D​​IV ID =TestContent的风格=保证金:100像素;边框:1px的固体#F00;高度:500px的;>
< / DIV>
< /身体GT;
< / HTML>
 

解决方案

删除所有UTF-8引用和IE浏览器突然决定打球。 IE浏览器,即使是全新的版本8,是年,其他3(Firefox和Safari,Opera)的背后... 哦。

This works on all other browsers...but fails on IE7 & IE8. Help Please!

<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<script src="/javascripts/prototype.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<input type="button" value="Ajax Test" onclick="var myAjax = new Ajax.Updater('TestContent', '/store/home', {method: 'post', parameters: 'foo=bar'});" />
<div id="TestContent" style="margin: 100px; border: 1px solid #F00; height: 500px;">
</div>
</body>
</html>

解决方案

removed all utf-8 references and suddenly IE decides to play ball. IE, even the brand new version 8, is years behind the other 3 (Firefox, Safari, Opera)... oh well.

这篇关于的prototype.js 1.6.0.3 Ajax.Updater的不工作在IE7或IE8。请帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆