Giter Club home page Giter Club logo

Comments (28)

posabsolute avatar posabsolute commented on July 23, 2024

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.

logemann avatar logemann commented on July 23, 2024

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.

posabsolute avatar posabsolute commented on July 23, 2024

thank you ! we will be looking into this bug

from jquery-validation-engine.

regularmistake avatar regularmistake commented on July 23, 2024

I experience the same issue using ajax field validation.

from jquery-validation-engine.

posabsolute avatar posabsolute commented on July 23, 2024

fixed please report if the bug still there

from jquery-validation-engine.

regularmistake avatar regularmistake commented on July 23, 2024

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.

posabsolute avatar posabsolute commented on July 23, 2024

thats weird, do you see the same behavior here ? http://www.position-relative.net/creation/formValidator/demos/demoAjaxSubmitPHP.html

from jquery-validation-engine.

regularmistake avatar regularmistake commented on July 23, 2024

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.

posabsolute avatar posabsolute commented on July 23, 2024

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.

posabsolute avatar posabsolute commented on July 23, 2024

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.

posabsolute avatar posabsolute commented on July 23, 2024

I will check this afternoon

from jquery-validation-engine.

regularmistake avatar regularmistake commented on July 23, 2024

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.

posabsolute avatar posabsolute commented on July 23, 2024

okay, I will reopen the bug

from jquery-validation-engine.

groovy9 avatar groovy9 commented on July 23, 2024

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.

posabsolute avatar posabsolute commented on July 23, 2024

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.

logemann avatar logemann commented on July 23, 2024

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.

posabsolute avatar posabsolute commented on July 23, 2024

Yea, this is the issue I am looking into,

from jquery-validation-engine.

posabsolute avatar posabsolute commented on July 23, 2024

any of you guys got an example online of the script not working? would help a lot

from jquery-validation-engine.

posabsolute avatar posabsolute commented on July 23, 2024

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.

logemann avatar logemann commented on July 23, 2024

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.

logemann avatar logemann commented on July 23, 2024

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.

logemann avatar logemann commented on July 23, 2024

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.

logemann avatar logemann commented on July 23, 2024

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.

posabsolute avatar posabsolute commented on July 23, 2024

Okay thanks logemann, i will try to have a look roday

from jquery-validation-engine.

posabsolute avatar posabsolute commented on July 23, 2024

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.

logemann avatar logemann commented on July 23, 2024

can you retry? I copied newest version on server.

from jquery-validation-engine.

posabsolute avatar posabsolute commented on July 23, 2024

thx I will

from jquery-validation-engine.

posabsolute avatar posabsolute commented on July 23, 2024

Okay, currently the ajax request is giving a 500 error

from jquery-validation-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.