PDA

View Full Version : form submit and success



wehtam
4 Jun 2008, 1:27 AM
Hello,
I submit a form and I want to get the result who is in msg, how do that ?
My return :
{success:true,msg:'TDSH Ship 7'}

My code :

simple.getForm().submit({url:'save-NewShipment.php?OrganizationID=<?=$_GET["OrganizationID"]?>', waitMsg:'Saving data ...',
success:function(form, action,response){

page('listeShipment.php?OrganizationID=<?=$_GET["OrganizationID"]?>');

}

});

}

Thanks,
Sorry for my very bad english

4 Jun 2008, 3:31 AM
inspect the response object