我正在一个Drupal 6网站环境中实现一个包含各种ColdFusion和静态html页面的调查提示器/提醒工具。我试图在1.2.6的Drupal版本中使用jQuery 1.4.4。jQuery 1.4与jquery ui和drupal没有冲突6
我进口的jQuery 1.4.4这样的:
<code>
<script type="text/javascript" src="/misc/jquery.js?7"></script>
<script type="text/javascript" src="/misc/drupal.js?7"></script>
<script type="text/javascript" src="/sites/all/modules/lightbox2/js/lightbox.js?7"></script>
<script type="text/javascript" src="/sites/all/modules/poormanscron/poormanscron.js?7"></script>
<script type="text/javascript" src="/sites/all/themes/realdecoy/scripts/jquery.carousel.js?7"></script>
<script type="text/javascript" src="/sites/all/themes/realdecoy/scripts/jquery.superbox-min.js?7"></script>
<script type="text/javascript" src="/sites/all/themes/realdecoy/scripts/swfobject.js?7"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.js"></script>
<script type="text/javascript" src="/_inc/survey/jquery.cookie.js"></script>
<!-- this script starts with : var j144 = jQuery.noConflict() : which I believe should restore $ to the jQuery 1.2.6 instance -->
<!-- this then sets up numerous behaviors using the j144 instance -->
<script type="text/javascript" src="/_inc/survey/survey.js"></script>
</code>
现在又该(当我没有1.2.6即没有noConflict对付你确实发生)的用户将加载页面并被要求在访问结束时参与调查。随后使用cookie对用户行为进行一些监控,以检测他们何时离开站点(即导航到页面或单击外部链接)。就像我说的,这一切都正常工作,并且我已经对此进行了测试,当时我正在使用ColdFusion脚本,并且不必使用noConflict来允许Drupal的jQuery共存。现在,它不会完全无故障地运行,但是整个过程非常麻烦并且不会一致地流动。
有没有人有关于如何去寻找问题的建议?我在加载jQuery 1.4之后对一些正在加载的插件进行了一些小的编辑,并且我玩了代码
我会考虑更多.. – 2011-03-12 15:08:51
http://drupal.org/project/jquery_update查看有关如何更新到1.4或1.5的drupal6的问题队列 – corbacho 2011-03-12 18:21:38
好吧,几个问题..为什么不去为jQuery 1.5.1而不是1.4.4?你有任何错误?你有链接到应用程序的错误版本? – arnorhs 2011-03-13 12:46:29