开发者

remember last clicked dojo tab after page refresh/moving away and coming back to page

I have two dojo containers on page. The main container has three content panes (tabs), pane1, pane2 and pane3. Pane2 has another container which has two panes(tabs) again, pane2a and pane2b. What is the javascript code I write to make the last selected tabs remembered after refreshing/moving away and coming back to the same page. persist=true isn't working with my version of dojo. Pl开发者_JAVA百科ease help.


You could use dojo.cookie() to set a cookie whenever a tab is selected, then read the cookie on page load and select the relevant tab.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜