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 194: Persistence by URL location
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Apr 2011


 
Reported by yugen...@gmail.com, Apr 22, 2011
What new or enhanced feature are you proposing?

Persistence by current url, something similar to the location persistence in Treeview (jquery tree plugin).

What goal would this enhancement help you achieve?

I need this functionality for my project.
Apr 25, 2011
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Labels: Milestone-Discussion
Apr 25, 2011
Project Member #2 moo...@wwwendt.de
I guess this feature can already be realized using available techniques:

1. Add ahelper function to parse the URL:

    function getURLParameter(name) {
        return unescape(
            (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
        );
    }

2. Evaluate the URL after the tree was loaded:

    $(function(){
        $("#tree").dynatree({
            [...]
            onPostInit: function(isReloading, isError) {
                var key = getURLParameter("activate");
                if( key ) {
                    this.activateKey(key);
                }
            },

3. Add the node key to the URL:

    http://server/_test-194.html?activate=_11

Summary: Persistence by URL location
Status: WontFix

Powered by Google Project Hosting