My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 359: JQuery 1.8.x compatibility
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Oct 2012


 
Reported by Robert.C...@gmail.com, Oct 6, 2012
What steps will reproduce the problem?
1. use the latest jquery 1.8.x
2. create dynatree: 
    $("#tree").dynatree()
3. get the root element of the tree
    var root = $("#tree").dynatree("getRoot");
4. try to call any of the dynatree functions like addChild:
    root.addChild( .... );

In the JavaScript console you receive an exception that addChild is not a function. Deeper look using firebug shows that there are no dynatree methods on the returned element. Tested on firefox and chrome.
Works fine with jquery 1.7.2.

If possible, please attach an example HTML file (e.g. a copy of `doc/_test-
ISSUE.html`), that reproduces the problem when copied
into the dynatree/doc/ folder or reproduce on jsFiddle:

1. open http://jsfiddle.net/mar10/xj5au/
2. [Fork] - Modify code - [Update] - [Share]

What is the expected output? What do you see instead?

I shall be able to call dynatree methods on dynatree elements.

What version of the dynatree and jQuery are you using?

dynatree 1.2.1, jquery 1.8.0 and 1.8.2

On what operating system and browser?
Debian linux, browser - chrome and firefox

What DOCTYPE declaration are you using?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">


Please provide any additional information below.
Oct 6, 2012
Project Member #1 moo...@wwwendt.de
I just tried Dynatree 1.2.1 with this sample
    dynatree/doc/sample-default.html
and
    UI 1.8.23, jQuery 1.8.2 (Chrome and Firefox)
Couldn't find any problems.
Would you send an HTML file that reproduces the Problem?

Status: Waiting
Labels: Milestone-Release1.2.x
Oct 7, 2012
#2 Robert.C...@gmail.com
Hello,

I am very sorry. It works with standard examples. The problem I experience is most probably connected with another component I have on my page - jquery.layout. I was using one of the methods of that component to get a div used then to render the dynatree in. This method didn't return proper div so that dynatree was not able to work properly. It was a bit hidden so that I haven't noticed it immediately. I have some more components on the page so that I need to understand all the interactions they may have when upgrading to the new version of jquery. 
Sorry again and please close the ticket.
Oct 8, 2012
Project Member #3 moo...@wwwendt.de
no problem, that's my favorite response ;-)
Status: Invalid
Labels: -Milestone-Release1.2.x Milestone-Release1.2.2

Powered by Google Project Hosting