| Issue 194: | Persistence by URL location | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
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 |
Labels: Milestone-Discussion