Control.tabs question

Is there any way that we could display the url of the tab (i.e. www.mysite.com#tab1) in the address instead of just main url(www.mysite.com)?

Posted December 1st, 2007 at 3:31pm by koushikgattu

Yes we can;

window.location.href += '#my_anchor';

Posted December 3rd, 2007 at 6:59am by Roland

i do have same prob..thanks Roland..where exactly we have to add that..so that i could display the "#myanchor" in the mail url?

Posted December 3rd, 2007 at 1:08pm by controltabs

Like we have in this page http://livepipe.net/projects/controltabs/ When we click on the tabs 'one' 'two' etc. its not reflecting in the address bar(url).But when we look at the link location we can see that its some thing like http://livepipe.net/projects/controltabs/#d. thanks

Posted December 3rd, 2007 at 1:22pm by controltabs

Im not sure which variable you should use, i have my own tabscript :)

But add right after "this.notify('afterChange',this.containers[link.key]);" in the method setActiveTab() my patch.

this.notify('afterChange',this.containers[link.key]); window.location.href += '#' + link.key;

Like i said, im not sure if link.key is the right var.

Posted December 4th, 2007 at 2:40am by Roland

Login or Register to Post