Hi again,

Just one thing. I noticed that this only works the first time you
click a link. Any subsequent links open to a new page instead of the
tab. It was quite easy to fix with livequery though, giving the
following code:

  $(document).ready(function(){
    $('#example > ul').tabs({
                load: function(e, ui) {
            $('a', ui.panel).livequery("click",function() {
                $(ui.panel).load(this.href);
                return false;
            });
        }
    });
   });

...I hope this is useful for someone!

Cheers,

Daniel


On 8 sep, 14:38, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> No problem - that happens quite a lot. I've no problem with being
> mistaken with Karl, the jQuery Karl, hehe ;-)
>
> --Klaus
>
> On Sep 8, 1:20 pm,DanielBeard<[EMAIL PROTECTED]> wrote:
>
> > Sorry, I meant Klaus!
>
> > I get called David a lot....
>
> >Daniel
>
> > On 7 sep, 11:22, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> > > You need to ajaxify those links after the content has been loaded:
>
> > > $(function() {
> > >     $('#example').tabs({
> > >         load: function(e, ui) {
> > >             $('a', ui.panel).click(function() {
> > >                 $(ui.panel).load(this.href);
> > >                 return false;
> > >             });
> > >         }
> > >     });
>
> > > });
>
> > > --Klaus
>
> > > On Sep 1, 12:52 pm,DanielBeard<[EMAIL PROTECTED]> wrote:
>
> > > > Hi everyone,
>
> > > > I am using jQuery UItabsversion 3.0. I am calling thetabscontent
> > > > via Ajax, but the links inside thetabsdon't open inside thetabs,
> > > > instead they load into a new page. Is there any way to make my links
> > > > load via Ajax into the current tab?
>
> > > > Thanks,
>
> > > >Daniel

Reply via email to