Subversion Repositories SmartDukaan

Rev

Rev 21951 | Rev 21954 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21951 Rev 21953
Line 788... Line 788...
788
    }
788
    }
789
 
789
 
790
 
790
 
791
 
791
 
792
function submitForm(formData){
792
function submitForm(formData){
793
    console.log(formData);
-
 
794
    jQuery.blockUI({ message: "<h5>Please wait while we upload data to our server</h5>" });
793
    jQuery.blockUI({ message: "<h5>Please wait while we upload data to our server</h5>" });
795
    
794
    
796
    jQuery.ajax({
795
    jQuery.ajax({
797
        url: "register",
796
        url: "register",
798
        type: 'POST',
797
        type: 'POST',
Line 800... Line 799...
800
        success: function (data) {
799
        success: function (data) {
801
            //$('#form')[0].reset();
800
            //$('#form')[0].reset();
802
      	  jQuery.unblockUI();
801
      	  jQuery.unblockUI();
803
        },
802
        },
804
     error : function() {
803
     error : function() {
-
 
804
       jQuery.unblockUI();
805
  	   alert("OOPS!!!Failed to do changes.Try Again.");
805
  	   alert("OOPS!!!Failed to do changes.Try Again.");
806
  	   jQuery.unblockUI();
-
 
807
     },
806
     },
808
        cache: false,
807
        cache: false,
809
        contentType: false,
808
        contentType: false,
810
        processData: false
809
        processData: false
811
    });
810
    });