Home > Back-end >  Dark horse travel network problem!!!!! Asynchronous submission form don't respond, open the hea
Dark horse travel network problem!!!!! Asynchronous submission form don't respond, open the hea

Time:10-02

Front ajax asynchronous submission, points out no response after registration, no submitted to the corresponding registUserServlet? The great spirit is that write wrong, please? $(function () {
$(" # registerForm "). Submit (function () {
If (checkUsername () & amp; & CheckPassword () & amp; & CheckEmail ()) {
//check through, submit the form data
$.post (registUserServlet "", $(this). Serialize (), function (data) {

})
} else {
return false;
}

CodePudding user response:

After the key is to press the f12, header without any data binding...

CodePudding user response:

Excuse me, would you please tell me how to solve this problem? Check a lot of didn't finished, speechless

CodePudding user response:

I also make uncertain,

CodePudding user response:

You didn't register button on the binding? Or where the character type is wrong, so would lead to no binding?

CodePudding user response:

Should be you're not connected to the database, you see whether JDBCUtils load druid. Knock the properties file is wrong, the correct is getResourceAsStream (" druid. Properties "); So, in front of the file don't knock "/",

CodePudding user response:

Your problem solved? I encountered problem is click after registration, the form data is not written into the database

CodePudding user response:

You this is a page is loaded directly to submit? Id you should select the register button a click event, and then sends the ajax

CodePudding user response:

I think so your logic in $() is executed after the page load out, and there is no value for input box this time so there is no form is submitted, but after you register button click event and no other code, that is you should put your ajax # form id. Click ()?
  • Related