No, you can't postpone a DOM refresh as you describe.  Your best bet
is probably to wrap the table in a div that has a constant height, so
the surrounding content remains in place as your table grows/shrinks.

On Sun, Oct 4, 2009 at 4:21 PM, Dennis Madsen <den...@demaweb.dk> wrote:
>
> I've created some jQuery which remove many tr rows from my table and
> inserts new via AJAX. This indicate that the page is scrolling because
> first the table increase after elements is removed and afterwards it
> grows when the new content is inserted. Is there a way to let jQuery
> update this table without doing so? Eg. by first refreshing the DOM
> after I finish my manipulation.
>
> Here is a bit of my code:
>
>        $j(".bookingViewRow").each(function() {
>                $j(this).remove();
>        });
>
>        $j.get('cajax.php', {}, function(html) {
>                $j("#bookingView").append(html);
>        });
>
> Please tell me if you don't understand my problem!

Reply via email to