Not Submit till the $.post is done. [Possible?]

Not Submit till the $.post is done. [Possible?]

 This is my Function:

   
  1.  $("#form_vip").live("submit",function(){

           

                    var duracao_vip = $('#duracao_vip').val();



                    $.post("ajax/soma_dos_servicos.php", { duracao_vip: duracao_vip, tipo: 'vip' },

                     function(data) {

                         //alert("This should return true!");

                        if(confirm(trim(data))){

                       

                           

                            return true;

                           

                        }else{

                            return false;

                        }

                       

                       

                    });

                  

                   

                   

                   

        });   























































What I need to do is to wait till the data is done, so I can decide if the form can be submitted or not.


Like it is doing return true and return false.

But this just doesn't wait, it returns true, it means it is not waiting the $.post gets done. Someone can help me out on this?


Thank you.