Reputation: 11
Im using YUI3 and would like to deep link my tabs. I used tabview + history from YUI. how do i change the value for the url parameter
/#tab-2 replace to /#tab-description
Thanks in advance.
Upvotes: 1
Views: 351
Reputation: 742
You can use:
http://developer.yahoo.com/yui/3/api/HistoryHash.html
It has a setHash method which can do that work for you. Under the hood, it just changes what you have above. Ideally, you'll have some sort of infrastructure in history to listen for the hash change events (http://developer.yahoo.com/yui/3/api/HistoryBase.html, history:change) to detect the change and perform you application code)
Upvotes: 1