最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Can't get jstree working - "Uncaught TypeError: Object #<Object> has no method &

programmeradmin0浏览0评论

I'm trying to get the jstree plugin working, following the "Predefined HTML" example on this page: .html

To avoid any conflict with anything else that might be happening, i've tried to get it working in the simplest possible page, in my public dropbox folder: .html

The only js i've included in my page is jquery and the main jstree file, jsTree/jquery.jstree.js. (The documentation is a bit shaky about what exactly i need to include, but maybe this is the problem). The rest of the files i downloaded are next to jquery.jstree.js, in the jsTree folder.

I've also got my predefined html, a nested list in a div with id="folder_tree".

When the javascript runs, i get an error Uncaught TypeError: Object #<Object> has no method 'delegate', from line 3629 of the jquery.jstree.js file - hopefully you'll see this error too.

Can anyone have a look at the page (the dropbox link above) and see what i'm doing wrong? thanks, max

(note that the file links in that page don't work - they don't need to in order for jstree to work)

I'm trying to get the jstree plugin working, following the "Predefined HTML" example on this page: http://luban.danse.us/jazzclub/javascripts/jquery/jsTree/reference/_examples/1_datasources.html

To avoid any conflict with anything else that might be happening, i've tried to get it working in the simplest possible page, in my public dropbox folder: http://dl.dropbox./u/846812/jstree_example/jstree_example.html

The only js i've included in my page is jquery and the main jstree file, jsTree/jquery.jstree.js. (The documentation is a bit shaky about what exactly i need to include, but maybe this is the problem). The rest of the files i downloaded are next to jquery.jstree.js, in the jsTree folder.

I've also got my predefined html, a nested list in a div with id="folder_tree".

When the javascript runs, i get an error Uncaught TypeError: Object #<Object> has no method 'delegate', from line 3629 of the jquery.jstree.js file - hopefully you'll see this error too.

Can anyone have a look at the page (the dropbox link above) and see what i'm doing wrong? thanks, max

(note that the file links in that page don't work - they don't need to in order for jstree to work)

Share Improve this question asked Oct 18, 2011 at 10:35 Max WilliamsMax Williams 33k34 gold badges135 silver badges204 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

jQuery delegate is since version 1.4.2

You are using a older version of jQuery

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论