do not swithch tab after postback

do not swithch tab after postback

Hi,

I am using a Tab control. In a tab i would like to have a CRUD (create read update delelte). I want this in the same tab. I have links in the tab that needs to be openend in the same tab. This works with the example in the documentation:

$('#tabs').tabs({
        load: function(event, ui) {
            $('a', ui.panel).live("click", function() {
                $(ui.panel).load(this.href);
                return false;
            });
        }

    });

BUT, when i do a postback within the tab and do some server validation i want to stay in the same tab if the validation fails. He now opens the failed page as a new form.

I tried to do something with:

$('#example').tabs({
select: function(event, ui) {
var isValid = ... // form validation returning true or false
return isValid;
}

But is does not work.

I hope somebody can help me.

Nathalia.
});