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 113: reload loses persistence
1 person starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  moo...@wwwendt.de
Closed:  Sep 2009


 
Reported by koh.a...@gmail.com, Aug 18, 2009

Calling $("#tree").dynatree("getTree").reloadAjax() reloads the tree but 
does not seem to reload persistence from cookies.

Same bug in IE 8 and Firefox 3.5.2
jQuery 1.3.2
Aug 19, 2009
Project Member #1 moo...@wwwendt.de
Is the behaviour different from simply hitting [F5] to reload the page?
(Note that persistence for lazy nested trees requires server-side cooperation as
described in the docs)
Status: Accepted
Aug 19, 2009
#2 koh.a...@gmail.com
Refreshing and re-performing the initialization:

$("#tree").dynatree({
    initAjax: { url: .... 
    ...
    rootVisible: false, // Set to true, to make the root node visible.
    minExpandLevel: 1, // 1: root node is not collapsible
    checkbox: true,
    selectMode: 3,
    persist: true,
    cookieId: "mycookie",
    ....

maintains the persistency. BUT after the tree is initialized, calling reloadAjax() 
does not seem to reload from the cookies.

Using Dynatree 0.5.1

Aug 19, 2009
Project Member #3 moo...@wwwendt.de
(No comment was entered for this change.)
Owner: moo...@wwWendt.de
Aug 19, 2009
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release0.5.2
Aug 26, 2009
Project Member #5 moo...@wwwendt.de
Fixed with r283 (please confirm)

reload called append, which called removeChildren, which also child persistence.

removeChildren now has a new arg 'retainPersistence'
Status: Fixed
Aug 26, 2009
#6 koh.a...@gmail.com
When tree depth is 3 or more, root and immediate child checkboxes are re-selected 
properly. Any other checkboxes below the first child were not re-selected on 
reloadAjax.

Reload did correctly persist the tree expansion. Refresh (F5) persists correctly.

Tested on IE8, r283, jQuery 1.3.2, Vista

Aug 28, 2009
Project Member #7 moo...@wwwendt.de
Hope I got it right now.
Can you try again (with the trunk version)?
Aug 29, 2009
#8 janscy...@poczta.onet.pl
Now works: expand and active node, but is other problem – when first time start page 
or cookie remove with tools page, reloadAjax loses persistence, but when I push F5 – 
reloadAjax work ok
Aug 30, 2009
Project Member #9 moo...@wwwendt.de
Reproduced:
1. clear session cookies
2. open (lazy loading) page
3. expand, select and activate
4. tree.reloadAjax()
  -> BUG: not persisted
5. [F5]
  -> persisted status appears OK
6. tree.reloadAjax()
  -> persisted status appears OK

Status: Accepted
Sep 2, 2009
#10 janscy...@poczta.onet.pl
Yes the above summary is correct.

Sep 19, 2009
Project Member #11 moo...@wwwendt.de
Tried another aproach.
Note that relaodAjax() was renamed to reload()
Sep 19, 2009
Project Member #12 moo...@wwwendt.de
(No comment was entered for this change.)
Summary: reload loses persistence
Sep 21, 2009
#13 koh.a...@gmail.com
Did a _quick_ test, seems fixed. Thanks!
Sep 21, 2009
Project Member #14 moo...@wwwendt.de
Thank you for testing and your patience ;-)
Status: Fixed
Jul 17, 2012
Project Member #15 moo...@wwwendt.de
considered verified
Status: Verified

Powered by Google Project Hosting