Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline ajax not working! #594

Closed
fullautos opened this issue Jan 27, 2013 · 2 comments
Closed

Inline ajax not working! #594

fullautos opened this issue Jan 27, 2013 · 2 comments

Comments

@fullautos
Copy link

Fix this please!

                if (typeof errorMsg == 'string') {
                    promptText += errorMsg + "<br/>";
                    options.isError = true;
                    field_errors++;
                }

When the 'Validating please wait' is returned, the field is set to invalid/false !

@TroyWitthoeft
Copy link

The above code marks any field that has ANY type of message as isError = true. This poses an problem. It means, you cannot directly exit a field that has a message to press the submit button. Submit won't work if a field isError.

For AJAX fields it's a bit more complicated. Because AJAX validation is kicked-off OnBlur(). That means as soon as you exit a field, a "validating please wait" message is also marking the field as invalid.

FrancoisH has partially fixed the AJAX side of this in #609 by marking the field as isError=False after AJAX submission, but we still have the problem of not being able to exit a messaged field to press submit. A double click is needed to shift the focus out of the field, and THEN submit. We see this issue in #621 and #544 that was supposedly solved by #502 which is still open.

@bartclaeys
Copy link

Has this ever been fixed? It doesn't look like even in version 2.6.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants