hi
this might just be your typo but isnt url: "/AddNewClient" suppose to
be url: "/AddNewClient.do" or .action?

first of all, since your using ajax and it shouldnt have anything to do with
form, so just to be on the save side i would change your button from
type="submit" to type="button" since you dont really want to submit the form
after all.

one thing i noticed is that the "data" attribute. isnt it suppose to be a
javascript Object? and not a string?
you can simply do
var data = {'loginClient' : loginClient,
'passwordClientError' : passwordClientError,'passwordClient2'
:passwordClient2
}

 $.ajax({
   type: "POST",
   url: "AddNewClient.do",
   data: data,
   success: function() {
      $('#Great').html('Great It\'s Done');
   }
 });

 //   alert (dataString);
   return false;

  });
 });

try these changes and see if you get anything

Reply via email to