简体   繁体   English

Internet Explorer,ColdFusion和Ajax

[英]Internet Explorer, ColdFusion and Ajax

I have a page loading donation information when a name is selected from a list: http://www.prayingpelicanmissions.org/donate#support It works in every browser except Internet Explorer. 从列表中选择名称时,我有一个页面加载捐赠信息: http//www.prayingpelicanmissions.org/donate#support它适用于除Internet Explorer之外的所有浏览器。 Is there an easy edit that will solve the compatibility issue? 是否有简单的编辑可以解决兼容性问题? Or do I need to figure something else out? 或者我需要解决其他问题吗?

The Javascript 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>

The ColdFusion Div ColdFusion Div

<div id="staffresult" style="margin-top:2%;">
  <cfif isDefined("url.staffName")>
    <cfinclude template="ajax/donatestaff.cfm">
  </cfif>
</div>

Thanks in advance for any help/guidance you can provide. 提前感谢您提供的任何帮助/指导。

EDIT: The page just goes blank when you select a name 编辑:当您选择名称时,页面将变为空白


SOLUTION: Removed CFTOOLTIPS 解决方案:删除了CFTOOLTIPS

The donatestaff page is returning a lot of HTML, including all of this: 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" />

The file yahoo-dom-event.js is most likely causing the error in MSIE. 文件yahoo-dom-event.js很可能导致MSIE中的错误。

Dan pointed out that MSIE redirects to a blank page with this code: <script id="_yui_eu_dr" defer="true" src="//:"></script> . Dan指出MSIE使用以下代码重定向到空白页: <script id="_yui_eu_dr" defer="true" src="//:"></script> Doing a search for _yui_eu_dr turned up some bugs related to YUI (Yahoo's JS library). 搜索_yui_eu_dr发现一些与YUI(Yahoo的JS库)相关的错误。 Which made me check the source of donatestaff.cfm . 这让我检查了donatestaff.cfm的来源。

Can you change that page to not use CFFORM ( EDIT ) or any CF UI tags ( /EDIT )? 您是否可以将该页面更改为不使用CFFORMEDIT )或任何CF UI标签( / EDIT )? That should get rid of those JS and CSS files. 那应该摆脱那些JS和CSS文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM