Jquery.Ajax Succes Function Return Null

Jquery.Ajax Succes Function Return Null

Hi all,

I have a litte problem with my jquery. Actually i was in build a e-commerce site.
And i have one table called voucher. So when user when to check out it will be asked first, whether they have
voucher or not. And i want to check this with jquery ajax function.

So i have a form with id 'final basket', and code i was create is :

  1. $('#final-basket').submit(function(){
  2.         var voucher = $('input[name=voucher]').val();
  3.        
  4.         if(voucher != '') {
  5.             $.ajax({
  6.                type:'GET',
  7.                url:'_themes/_default/_plugin/_ajax.page.php',
  8.                data: 'c=shopping&m=voucher&voucher='+voucher,
  9.                dataType:'html',
  10.                success:function(msg) {
  11.                     alert(msg);
  12.                }
  13.             });
  14.             return false;
  15.         } else {
  16.             return true;
  17.         }
  18.     });
  19. });

Unfortunately i didn't get anything in success function. Thanks for every one. :)