whops, thanks for pointing it out.

claudio

Il giorno 11/apr/09, alle ore 15:46, Klaus Hartl ha scritto:


Use:

$(".to_be_replaced", ui.panel).load(this.href);


--Klaus



On 11 Apr., 12:00, Claudio Poli <masterk...@gmail.com> wrote:
hi everyone,
I've this situation: an X number of tabs; in tabs content there's a
div classed .to_be_replaced and links for paginating.
when I click on a link it should replace the content
of .to_be_replaced.

The problem here is that every div.to_be_replaced gets replaced, and
not only the one that belongs to the currently shown tab.

this is the code:

    $('#tabcontainer').tabs({
        show: function(event, ui) {
            $('div.pagination a', ui.panel).live('click',
            function() {
                $.blockUI({
                    message: null
                });
                $("ui.panel, .to_be_replaced").load(this.href);
                return false;
            });
        }
    });

any help is appreciated, thanks.

Reply via email to