的prototype.js 1.6.0.3 Ajax.Updater的不工作在IE7或IE8。请帮助!工作、js、prototype、Ajax

2023-09-10 17:11:17 作者:黑白琴键弹不出的旋律

这适用于所有其他浏览器...但没有在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)的背后... 哦。

换上1.6.0.2的prototype.js后ExtJS报错

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.