$('#tabs').tabs({
    spinner: 'Loading...',
    ajaxOptions: {
        dataType:'text'
    }
});

http://docs.jquery.com/UI/Tabs#options


--Klaus


On 21 Jun., 22:18, Hardip <hardi.per...@gmail.com> wrote:
> a small correction.
>
> the method is working.
>
> what wasn't working is the dataType.
>
> if i set it to json, globally, then Tabs tries to fetch json, not text
> (general HTML).
>
> how can i make an exception to Tabs.
>
> [code]
> $.ajaxSetup({
>                 type:'post',
>                 dataType:'json',
>                 cache:false,
>                 url:'ajax.php',
>                 timeout: 30 * 1000
>         })
>         $('#tabs').tabs({
>                 spinner: 'Loading...',
>                 cache: false,
>                 dataType:'text'
>         });
> [/code]
>
> aint working...
>
> On Jun 21, 11:00 pm, Hardip <hardi.per...@gmail.com> wrote:
>
> > When i override the ajax method with $.ajaxSetup and set the
> > type:'post', then consecutive calls to fetch data from the server, by
> > Ajax Tabs (http://stilbuero.de/jquery/tabs/), the tab stays
> > Loading... forever.
>
> > Firebug shows that a POST request was made and it completed
> > successfuly, however, the Tab stays Loading... forever.
>
> > If i set it back to type:'get', the Tabs work fine.
>
> > is it a bug, restriction?
>
> > if it's a restriction, then why?
>
> > workarounds?
>
>

Reply via email to