I have it working now. My mistake for some reason I thought this code was
separate from the code that binds the tabs($('tabid').tabs()). So I had 2
pieces of code to generate the tabs and I guess they conflicted with each
other. Now that I have them as one it works

James-279 wrote:
> 
> 
> Sorry, I re-read the first post and it sounds like you do have it
> working.
> 
> Does using 'select' or 'load' (instead of 'show') work?
> 
> On Apr 1, 2:49 pm, James <[email protected]> wrote:
>> Just to make sure, does your tabs work as expected?
>> That is, when you click a tab it shows you the expected contents of
>> the tab?
>>
>> On Apr 1, 2:47 pm, chobo2 <[email protected]> wrote:
>>
>> > Steven Black-2 wrote:
>>
>> > > Don't take '.selector' literally.
>>
>> > > In the place of '.selector', you need to place the selector that
>> > > identifies your tabs, for example:
>>
>> > > $('#MyTabId').tabs({
>> > >    show: function(event, ui) {  }
>> > > });
>>
>> > > **--**  Steve
>>
>> > > On Mar 21, 9:52 pm, "[email protected]" <[email protected]>
>> wrote:
>> > >> Hi
>>
>> > >> I want to to set certain fields back to default when a person
>> switches
>> > >> a tab(so if tab one is shown then tabs 2 and 3 controls will go back
>> > >> to default). None of the tabs are ajax but I am unsure how to do
>> this.
>> > >> I tried looking at the documentation but I just can't figure out how
>> > >> to do this.
>>
>> > >> I tried to use shown but I could not get it too work:
>>
>> > >> $('.selector').tabs({
>> > >>    show: function(event, ui) {  }
>>
>> > >> });
>>
>> > >> I don't even think I have the .selector class. When I pasted it in
>> and
>> > >> tried to see through the firebug debugger I never saw this code
>> being
>> > >> activated when the code the tabs switched.
>>
>> > Hi sorry for the late replay never got notifed that somone responded.
>>
>> > Well I called my ID of my tabs.... tabs(so it would be referenced as
>> #tabs)
>> > just from the jquery example.
>>
>> > When I put a alert box in the code you have and tried to switch between
>> tabs
>> > nothing happened.
>> > --
>> > View this message in
>> context:http://www.nabble.com/How-to-do-stuff-when-a-tab-is-select--tp2264556...
>> > Sent from the jQuery UI Discussion mailing list archive at Nabble.com.
>>
>>
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-do-stuff-when-a-tab-is-select--tp22645565s27240p22839219.html
Sent from the jQuery UI Discussion mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to