[jQuery] How to show Updating container

[jQuery] How to show Updating container


Hi,
I have a problem like when checkbox is clicked it refines the rows of table
and then finally shows only those results which for which checkboxes are
checked. My problem is until the refinement is done it should show some
pop_up container to appear and then hide as soon as refinement is completed.
I'm using .show along with some css of z_index.
<div id="rs_loading">loading...</div>
css class for this is
#rs_loading
{
    position:absolute;
    top:350px;
    margin-left:75px;
    color:#fff;
    font-weight:bold;
    background-color:#76EE00;
    font-size:24px;
    padding:40px;
    border:1px solid #D9DBD4;
    z-index:1000;
    display:none;
}
so, its like this $("#some_table_name").click(
function()
{
$("#rs_loading").show();

someFuncTORefine();
$("#rs_loading").hide();
}
);
I dont know where it's breaking it rs_loading container is shown after the
someFuncTORefine() is executed. So it appears once the refinement function
is done but not exactly when the click is made. I spent lot of time on this
figuring out whats going wrong. Can Any one help me out plz...
--
View this message in context: http://www.nabble.com/How-to-show-Updating-container-tf4179621s15494.html#a11885345
Sent from the JQuery mailing list archive at Nabble.com.