Created
April 4, 2017 00:19
-
-
Save alexdev27/7a3c496ad76be2402c2435a2a82fd439 to your computer and use it in GitHub Desktop.
Revisions
-
alexdev27 created this gist
Apr 4, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ function ajaxForm(form, urlToFile) { // if (!valid) {return false;} var serailizedForm = form.serialize(); var result = $.ajax({ url: urlToFile, type: 'post', // dataType: 'json', data: serailizedForm, }).fail(function(answerFromServer){ alert('AJAX FAIL '); }); return result; }