Internet Explorer, ColdFusion and Ajax
Internet Explorer, ColdFusion and Ajax
当从列表中选择名称时,我有一个页面加载捐赠信息:http://www.prayingpelicanmissions.org/donate#support它适用于除Internet Explorer以外的所有浏览器。是否有一个简单的编辑将解决兼容性问题?还是我需要想点别的办法?
Javascript<script language="javascript">
$(document).ready(function() {
$("#staffName").change( function() {
var staffName = $(this).val();
$.get('/ajax/donatestaff.cfm', {"staffName": staffName}, function(data) {
$('#staffresult').html(data);
});
});
});
</script>
ColdFusion Div
<div id="staffresult" style="margin-top:2%;">
<cfif isDefined("url.staffName")>
<cfinclude template="ajax/donatestaff.cfm">
</cfif>
</div>
事先感谢您提供的任何帮助/指导。
编辑:当你选择一个名字时,页面会变成空白
解决方案:删除CFTOOLTIPS
donatestaff页面返回了大量HTML,包括以下所有内容:
<script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath="";
_cf_ajaxscriptsrc="/CFIDE/scripts/ajax";
_cf_jsonprefix='//';
_cf_clientid='5F9D4743F573B3FB1E5DA62CDDD1008D';/* ]]> */</script><script type="text/javascript" src="/CFIDE/scripts/ajax/yui/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/ajax/yui/container/container-min.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/ajax/yui/animation/animation-min.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/ajax/messages/cfmessage.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfajax.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/ajax/package/cftooltip.js"></script>
<link rel="stylesheet" type="text/css" href="/CFIDE/scripts/ajax/resources/yui/yui.css" />
文件yahoo-dom-event.js
最有可能导致MSIE错误。
Dan指出MSIE用这个代码重定向到一个空白页面:<script id="_yui_eu_dr" defer="true" src="//:"></script>
。做一个搜索_yui_eu_dr
出现了一些与YUI(雅虎的JS库)相关的bug。这让我检查了donatestaff.cfm
的来源。
您可以更改该页面不使用CFFORM
(EDIT)或任何CF UI标签(/EDIT)吗?这应该可以摆脱那些JS和CSS文件
相关文章:
- Ubergallery and ajax
- jQuery deferred method and ajax beforeSend()
- JSON and AJAX response
- Javascript and Ajax Calls
- Bootstrap Contact Form with jQuery Validation and AJAX
- JSON and AJAX with Python
- Javascript and AJAX post method
- Flask- WTF with knockout.js , JavaScript and Ajax
- Wordpress Custom Post Type Popup—jquery and ajax?
- jQuery and Ajax Form Validation
- Javascript setTimeout multiple and ajax and waiting time
- Wordpress and Ajax
- JSON Google Books and Ajax
- setInterval and Ajax
- JavaScript and Ajax "@"
- Symfony2 and AJAX
- getElementsByClassName and AJAX
- Bootstrap Modal init and AJAX
- ReCaptcha and AJAX API
- Using the jquery .on() and $.ajax