guillaumepotier / Parsley.js

Validate your forms, frontend, without writing a single line of javascript
http://parsleyjs.org
MIT License
9.05k stars 1.32k forks source link

remote validate passed but submit fail #1331

Closed xiaofanku closed 4 years ago

xiaofanku commented 4 years ago

`

名称长度必须介于5个字符和20个字符之间,并且只能使用字母数字字符

`

批注 2020-04-29 185844

i used version: 2.9.1, jquery: 3.2.1, server response: 200. remove data-parsley-remote is worked

marcandre commented 4 years ago

I suspect you are using different domains and you have a CORS issue, please see #1039. If not you will have to produce a minimal reproducible example.

xiaofanku commented 4 years ago

I suspect you are using different domains and you have a CORS issue, please see #1039. If not you will have to produce a minimal reproducible example.

not cors, is same domain request. 批注 2020-04-30 103623

xiaofanku commented 4 years ago

a public domain test. you see is 批注 2020-04-30 110035 cros

xiaofanku commented 4 years ago

i try replace input type=submit to button type=submit is worked, what is reason?

marcandre commented 4 years ago

i try replace input type=submit to button type=submit is worked, what is reason?

Strange. That should not make any difference. Are you sure that's the only thing you have changed?

marcandre commented 4 years ago

I doubled checked that on our remote example it seems to work the same for <input> or <button>. You can play with it by clicking the codepen button in http://parsleyjs.org/doc/examples/ajax.html for example

xiaofanku commented 4 years ago

i try replace input type=submit to button type=submit is worked, what is reason?

Strange. That should not make any difference. Are you sure that's the only thing you have changed?

yes, I'm the only one of the developers

xiaofanku commented 4 years ago

I doubled checked that on our remote example it seems to work the same for <input> or <button>. You can play with it by clicking the codepen button in http://parsleyjs.org/doc/examples/ajax.html for example

At least I'm sure this is not the cause of CORS,