Ah.  That's by design.  See the cache option to prevent that
behaviour.

http://jqueryui.com/demos/tabs/#option-cache

**--**  Steve



On Jan 15, 11:31 am, Jiarui Yan <jerry.yan...@gmail.com> wrote:
> Sorry Steven,
>
> I just tested, it still sends request out.  I do not expect the url to be
> called as the content is already populated.
>
> Behaviour i am expecting:
>
> If user click a tab, it reload the tab by sending a GET.
> If user is on a tab and click submit button, it post the form by POST and
> put the result to tab2 holder div.  Tab2 should be selected.  I wondering if
> I can do it but no GET will be sent.
>
>  $("#tabs").tabs("option","selected", 1); will select the tab 2 but also
> send out an GET to load the content.  In my case, content is loaded after a
> form POST.
>
> Thanks.
>
> On Fri, Jan 15, 2010 at 12:13 AM, Steven Black <ste...@stevenblack.com>wrote:
>
> > Try this:
>
> >  $("#tabs").tabs("option","selected", 1);
>
> > Works like a charm :-)
>
> > **--** Steve
>
> > On Jan 14, 11:22 pm, Jerry <jerry.yan...@gmail.com> wrote:
> > > Hi,
>
> > > I am recently using tabs as my wizard process which has 4 steps.  My
> > > design is 1 tab for 1 step.  When form in tab1 is submitted, it post
> > > to tab2.  In my ajax call back, I need to activate the tab2.  So I do $
> > > ("#tabs").tabs("select", 1);  It send out the url defined in tab2 as
> > > well.
>
> > > Is there a way to just switch to tab2 without sending the url out?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "jQuery UI" group.
> > To post to this group, send email to jquery...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/jquery-ui?hl=en.
>
>
-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to