2010-10-25 126 views
3

是jquery 1.3.2与jqueryui 1.8.4冲突吗?我收到错误“太多递归”(使用下面的代码)。jquery和jqueryUI冲突

当笔者结合的jQuery 1.3.2与1.7.2 jQueryUI的我没有得到这个错误,但它打破了我的代码...

某处是否有一个参照表,该表的jQuery版本的作品与jQueryUI的代码?

<html> 
<head> 
<title>This is the title</title> 
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'></script> 
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js'></script> 
</head> 
<body>nothing here</body> 
</html> 

回答

3

是的,有这些版本之间有冲突 - 我卡住了,因为Drupal的没有像jQuery 1.3.2相比新 - 我读有因为的Greasemonkey没有按同样的问题,有人也不适用于1.3.2以上的任何JQuery。

我发现这个票: http://bugs.jqueryui.com/ticket/6689

有一个与JQuery用户界面库的修改版本发布的还有一个.zip文件。我试图使用ui.dialog时出现此错误 - 我只是将修改过的库的那部分复制到了我的代码中,它可以工作。

5

难道你不能只包括2个最新版本?适用于多个项目。

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> 
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>