2011-08-07 3 views
0

JQuery Treewiev 플러그인을 좋아하지만 http://bassistance.de/jquery-plugins/jquery-plugin-treeview/에 문제가 있습니다.Jquery Treeview Plugin Location 지속성

위치 기반 지속성을 사용하고 있지만 URL에 get 변수가 있으면 올바르게 유지되지 않습니다.

예를 들어

: HTP : //yourwebpage.com/group

는 HTP 다르게 인식 : //yourwebpage.com/group GROUP_ID = 555

가지 경우가있을 수 있습니다 이유를 이해? 일치 시켜서는 안되지만 treeView에 이러한 두 상태를 일치시킬 수있는 방법이 있습니다. 어떻게이 문제를 해결할 수 있습니까?

답변

0

당신이

+0

location.href.toLowerCase().split("?")[0]에 쿠키 값을

var current = this.find("a").filter(function() { return this.href.toLowerCase() == location.href.toLowerCase(); }); 

var current = this.find("a").filter(function() { return this.href.toLowerCase() == location.href.toLowerCase().split("?")[0]; }); 

에 jquery.treeview.js에 위치에 액세스하는 방법을 변경하거나 쿠키 지속성을 사용하여 설정할 수 있습니다 주셔서 감사합니다 . 그것은 정확하게 작동합니다! – fatih