0
0
Fork 0

Fixed javascript ajax request data values, added debug ajax success function, removed unnecessari files (again)

This commit is contained in:
Bryan Pedini 2019-01-21 00:47:24 +01:00
parent bc95c0ec7d
commit d592b1c19a
No known key found for this signature in database
GPG Key ID: 688D440AE31B40C2
5 changed files with 8 additions and 8276 deletions

View File

@ -5,4 +5,5 @@
20190119/01 - Moved the entire title from the javascript to the PHP section, finished almost all templates, moved the footer on the main "template holder" page, extended the session to three days instead of just one for no technical reasons, added CHANGELOG, added three background images. | Did you seriously thought that this changelog was to keep track of any sort of change? OF COURSE NOT: it's for myself, when I commit only once after three days of work, to remember what the hell I did in the three days before, like sidenotes, but inside the own repository I will commit to...
20190120/01 - Completed the templates, added a cool javascript effect on textarea (added jquery.ns-autogrow plugin), modified the click functions from .on to .click for improved performance | All tho the commit of "yesterday" was of "this morning" at 4 minutes passed midnight... my life is a *****, guess why...
20190120/02 - Modified template title | My descriptions says everything
20190121/01 - Added PHP and javascript control for the contact form, moved javascript from template page to a dedicated script file | What to say, my description says everything again, strangely... How much I hate to commit 10 minutes after midnight by the way...
20190121/01 - Added PHP and javascript control for the contact form, moved javascript from template page to a dedicated script file | What to say, my description says everything again, strangely... How much I hate to commit 10 minutes after midnight by the way...
20190121/02 - Fixed javascript ajax request data values, added debug ajax success function, removed unnecessari files (again)

View File

@ -6,9 +6,12 @@
method: 'POST',
datatype: 'JSON',
data: {
name: $('#contact-form-name'),
email: $('#contact-form-email'),
message: $('#contact-form-message')
name: $('#contact-form-name').val(),
email: $('#contact-form-email').val(),
message: $('#contact-form-message').val()
},
success: function () {
console.log( 'I ran the ajax request successfully' ); // debug purposes
}
});
});

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long