reload() problem

reload() problem

Hello:

I've a small problem and am hoping someone here knows the answer. Following is my jQuery snippet:

  1.     window.location.reload();
  2.    
  3.         // after reloading ... select userGrps_tab
  4.         $items.removeClass('selected');
  5.         index = 2;
  6.         $('#userGrps_tab').addClass('selected');
  7.         $('#vtab>div').hide().eq(index).show();
As you can see the window.location.reload(); is the 1st command.

However ... when this snippet runs, the userGrps_tab is selected and THEN the window.location.reload() takes place...

Anyone have any idea why???

And what is the solution???

Thanks Much:

Pavilion