Comments (4)
Sorry for the late reply, could you please explain why you need two parameters to check if a username is already taken ?
one parameter should be enough...
To answer your question, no, it's not supported out of the box. yet you should be able to hook the ajax object in the onBeforeXXX methods() -> I didn't try.
from jquery-validation-engine.
Thanks for your reply.
Let's say ...
You login as orefalo in an application and you would love to change it to something else. The system will check if the username has existed from the database (thru Ajax). The system will output some warning message if the username has been used by others.
However, when I put in orefalo again in the username field and hit save, the system tells me that it has been registered in the system. I think I need to pass another parameter to exclude the original value, ie.orefalo in the search.
Any ideas?
Thanks for your help
Wil
from jquery-validation-engine.
I am afraid we do not support this scenario at the field level.
Ajax form validation should however do the job.
You could simply use two input fields, on visible the other hidden to get this working.
from jquery-validation-engine.
Actually, you can pass extra parameters by using the onBeforeXXX methods.
There you can change the extraData attribute : it is used to construct the URL
"ajaxUserCall": {
"url": "http://localhost:9173/ajaxValidateFieldUser",
// you may want to pass extra data on the ajax call
"extraData": "name=eric",
"alertText": "* This user is already taken",
"alertTextLoad": "* Validating, please wait"
},
from jquery-validation-engine.
Related Issues (20)
- <input type="number" class="validate[custom[number]]"/>时,谷歌,火狐浏览器验证value为"1..55"这样的多个点时,验证失效,IE下验证OK HOT 2
- Vue.js conditional rendering HOT 1
- Add Issue template and Pull request template
- (hide) hiding all error prompts?! HOT 1
- [QUESTION] Where I can find the CI service? HOT 2
- Jquery validation engine not working with Jquery 3.4.1 HOT 4
- Starting pre release 3.0.0 HOT 2
- X-Requested-With: XMLHttpRequest is not transmit in v3.0 HOT 2
- is there a way to upload a file on the form ajax call ? HOT 4
- Support ipv6 in custom regex HOT 1
- cdn HOT 6
- Select Date & Validate
- Incompatible date format in some locales with 'future'
- Position Left issue
- GHSL-2020-354: seeking security contact for your project
- promptPosition dont work HOT 1
- Documentation
- Trying to get in touch regarding a security issue
- About Bug or duplicate Javascript code line HOT 1
- Can't show error message
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-validation-engine.