Comments (28)
Its worth mentionning that you can use onValidationComplete (see doc and demo) after the client side is validated, to handle the form submittion yourself, (using $.ajax and etc)
That being said, it definatly look like a bug, we will be investigating,the ajax function has been rewritten and it seems we have a couple of bugs with it
from jquery-validation-engine.
Thanks for the input. But i would like to use the internal AJAX feature if possible.
I think the prompt gets destroyed there (validateField):
if (!isAjaxValidator) {
if (options.isError)
methods._showPrompt(field, promptText, "", false, options);
else {
methods._closePrompt(field);
}
}
Uhhh, Slowly i can think of the issue. Since the lack of a general error prompt which one can trigger (see my suggestion in forum), i misused the prompt for the password field (user/password fields only in the form). Of course the validation of the password field is ok. So the code removes the prompt but my form validation will return an error. So i need the password prompt back in. There is a problem with the syncronization of the :
var prompt = methods._getPrompt(field);
and the real DOM tree. Thats what i suspect. in reality, the prompt was removed but at the point where he needs to decide if he should update or create the prompt, he thinks that the prompt is there, which isnt.
At least thats my educated guess ;-)
from jquery-validation-engine.
thank you ! we will be looking into this bug
from jquery-validation-engine.
I experience the same issue using ajax field validation.
from jquery-validation-engine.
fixed please report if the bug still there
from jquery-validation-engine.
I updated to the latest version, but I still have the same issue.
This is how I run it:
"ajaxUser":{
"url":"../include/ldap/validateUser2.php",
"alertTextLoad":"* Loading, please wait",
"alertText":"* Invalid username."
},
from jquery-validation-engine.
thats weird, do you see the same behavior here ? http://www.position-relative.net/creation/formValidator/demos/demoAjaxSubmitPHP.html
from jquery-validation-engine.
Nope, it works there. Can't see what differs.
$("#form").validationEngine({ ajaxFormValidation: true, onAjaxFormComplete: ajaxValidationCallback }); "ajaxUser":{ "url":"../include/ldap/validateUser2.php", "alertTextLoad":"* Loading, please wait", "alertText":"* Invalid username."},
from jquery-validation-engine.
i know it might sound dumb to ask, but are you sure you cleared your cache and that you actually erased the file :P
I saw your bug when working on the last engine version and fixed it
maybe try to link the version on position-relative.net directly to see if it changes anything
from jquery-validation-engine.
if it dosent changes anything I will reopen the bug, it might have something to do with the onbefore, and a success condition
from jquery-validation-engine.
I will check this afternoon
from jquery-validation-engine.
Yeah, it's cleared :)
I use jquery 1.5, if that does any difference.
The server I am using doesn't have internet access, so I can't try to link your version.
When I do a focusOut from the element it "validates" directly, but when submitting it gets cleared.
from jquery-validation-engine.
okay, I will reopen the bug
from jquery-validation-engine.
http://www.position-relative.net/creation/formValidator/demos/demoAjaxSubmitPHP.html DOES exhibit the bug. To reproduce: remove the email address so it's blank. Type "a" in the username box, then click the background to blur that input. Now there should be red boxes above the username and email inputs. Now click submit. Red box above username should disappear.
from jquery-validation-engine.
Well the reason for that is simple, normal validation is executed before and on error stop the submit ajax validation,
So yea, this is the normal behavior unfortunately, for now.
that being said It is not really an issue that a normal user should see happen a lot in the normal flow of things
from jquery-validation-engine.
ok, but my issue is slightly different. I hit submit two times with wrong credentials and on second submission the already displayed error message disspears. Thats definitely not what the user expects ;-)
from jquery-validation-engine.
Yea, this is the issue I am looking into,
from jquery-validation-engine.
any of you guys got an example online of the script not working? would help a lot
from jquery-validation-engine.
still no joy trying to find your bug guys, if you can't give me an example online, i would need your form html, it might be a set of validation rules that trigegr the problem !
Thanks
from jquery-validation-engine.
need 1-2 more days to get you my sample. Sorry.
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de
Am 23.03.2011 um 12:44 schrieb posabsolute:
still no joy trying to find your bug guys, if you can't give me an example online, i would need your form html, it might be a set of validation rules that trigegr the problem !
Thanks
Reply to this email directly or view it on GitHub:
#43 (comment)
from jquery-validation-engine.
i have not lost interesst. In fact i encounter this issue in various forms. Now i will try to upload our whole alpha app onto a public server so that you can see this stuff.
from jquery-validation-engine.
Ok. Here we go. Please can you try the following URL:
http://dev.logentis.net:8080/Netversys/Login.app
(argh)
I wanted to explain how to produce the error, but now everything runs like expected. I will check some other screen to see if i can re-gain the behavior i mentioned some days ago.
from jquery-validation-engine.
Ok. Its me again. I got it:
Try to login with false credentials:
User: Administrator
PW: foofoo
Then an error is displayed. Now do it with correct PW: Netversys
Now the error dissapear but inside the handler, the form.submit() doesnt work. If you hit "login" button again, it works. Why only on second submission.
In the source code you can see i commented a line with "window.location.replace". This was my workaround to make it work on first submit.
Update: This behavior appears in every form i have inside the app. Quite ugly and i dont know whats wrong with the form object in the handler.
from jquery-validation-engine.
Okay thanks logemann, i will try to have a look roday
from jquery-validation-engine.
Well for one, can you update to the latest version on your website, this version has some bugs in the ajax functions
it read 2.0 beta and it should read 2.1
from jquery-validation-engine.
can you retry? I copied newest version on server.
from jquery-validation-engine.
thx I will
from jquery-validation-engine.
Okay, currently the ajax request is giving a 500 error
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.