Thursday 28 September 2017

Weird error when responding to form submission vs ajax

I have a form
// inputs
It successful returns results from database query.// server app.post('/login', function(req, resp) { // database query console.log(result); }) However, in my javascript, if I do an ajax call, console log return undefined. Is there some sort of conflict when having a form with the same action as an ajax url?

Submitted September 28, 2017 at 05:46AM by eggtart_prince

No comments:

Post a Comment