[jQuery] Re: Select Tab Programatically

2008-04-08 Thread Mic
Thanks Klaus, I had seen this documentation but I just dont understand where the code goes. I was hoping to pass a parameter from the calling program like marr.adam suggested. EG: myprogram.php?tabSelected=2 However, this doesn't work. Where would I put the code you suggested and how does the pa

[jQuery] Re: Select Tab Programatically

2008-04-08 Thread Klaus Hartl
On Apr 8, 11:04 am, Mic <[EMAIL PROTECTED]> wrote: > Yes, I am using UI Tabs. Then you can use the tabs('select') method. Attach a handler to the link that'll activate the corresponding tab. Something like: var $tabs = $('#tabs').tabs(); $('#link').click(function() { $tabs.tabs('select', 3)

[jQuery] Re: Select Tab Programatically

2008-04-08 Thread Mic
Yes, I am using UI Tabs. On Apr 8, 4:34 am, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Do you use UI Tabs? > > On Apr 8, 12:37 am, Mic <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I am a newby to jQuery and have a problem I can not figure out. I want > > to be able to select a tab thru a link. In o

[jQuery] Re: Select Tab Programatically

2008-04-08 Thread marr.adam
if you are doing page to page calls, then as far as I know the easier way to do it is with a hash or query string (blah.html#tab2 or blah.html?tabSelected=2) Not sure if jquery has a function to parse the url for parameters, but there are plenty of references online (search: javascript get query s

[jQuery] Re: Select Tab Programatically

2008-04-08 Thread Klaus Hartl
Do you use UI Tabs? On Apr 8, 12:37 am, Mic <[EMAIL PROTECTED]> wrote: > Hi, > > I am a newby to jQuery and have a problem I can not figure out. I want > to be able to select a tab thru a link. In other words when a user > selects a link from a main menu, I want the corresponding tab to be > auto