Coder Social home page Coder Social logo

Comments (15)

bhushan-firake avatar bhushan-firake commented on August 22, 2024

First of all, thank you for building this easy to use and awesome library. But I am facing this same issue in my code.

I have noticed that the issue is related to the browser. It produces this error in FireFox 32.0. This issue doesn't come in Chrome.
untitled

from verifyjs.

ht512512 avatar ht512512 commented on August 22, 2024

Has anyone found a solution or work-around? I have started to debug it but wanted to check before I get deeper.

Thanks.

from verifyjs.

bhushan-firake avatar bhushan-firake commented on August 22, 2024

@ht512512 I am no script guy. Wanted to use this as it is very easy to add in my code in c#. However, I have not yet resolved this error. Will update or submit a pull request if solved. Hope you will do the same.

Thank you

from verifyjs.

ht512512 avatar ht512512 commented on August 22, 2024

@BhushanFirake The author has marked this issues as a bug so he is aware of it. The previous version does not have this bug so my current workaround is to fall back to the previous version. (Go to the verify.js home and "view source" and download the version included in that. )

from verifyjs.

jpillora avatar jpillora commented on August 22, 2024

Hey guys, sorry about the lack of support, as mentioned in #7 I still keep track of my projects, though I don't have much time to fix bugs, hence I'm looking for maintainers.

To give you guys an idea of the crux of the project.

  • Form objects contain form validation state and a list of element objects
  • Element objects contain element validation state and a list of validators
  • Validators are functions which return true or error string
  • Execution objects are basically just wrappers around jQuery promises
  • FormExecution objects start FieldExecutions and GroupExecutions in parallel
  • FieldExecutions objects start Validators in series

This diagram attempts to show this flow:

validation flow

It'd be great if someone wanted to volunteer to be a maintainer, and if someone is willing, I've start a contributor wiki and move this summary there and expand on it where needed.

I wrote this library in 2012, so I can't remember too well though I think this bug is coming from group validations, or logic that was introduced to handle group validations. In the diagram above, the pink circles are Group validations which are dependant on each other, so in that case, the execution flow must wait until all group members (input fields) are ready to execute - hence the "Field is pending..." message.

from verifyjs.

jpillora avatar jpillora commented on August 22, 2024

https://github.com/jpillora/verifyjs/wiki/Contributor-Documentation

from verifyjs.

CAYdenberg avatar CAYdenberg commented on August 22, 2024

@ht512512 could you post the URL for the script you have been using? I tried the version (of both notify.js and verify.js) that is included on the Verify.js website (http://verifyjs.com/js/notify.js, http://verifyjs.com/js/verify.js) and didn't have any luck.
Casey

from verifyjs.

ht512512 avatar ht512512 commented on August 22, 2024

@CAYdenberg
Sorry, I don't have that handy anymore since I moved away from that workaround and went back to the latest version. The better work around for me was to use ajax submit. That works fine with the latest version of verify-notify.js. You do have to call verify() method from javascript though.

from verifyjs.

CAYdenberg avatar CAYdenberg commented on August 22, 2024

Yes, that's what I've ended up doing, too. Would be nice to have the fallback but I guess if JS is disabled verify just won't work :)

from verifyjs.

ht512512 avatar ht512512 commented on August 22, 2024

@CAYdenberg
Agree.
Just noticed an error in my workaround description. I meant to say, "You do have to call validate() method from javascript though."

from verifyjs.

jakejeon avatar jakejeon commented on August 22, 2024

I have a same issue, anyone with luck?

2014-12-01 11 08 29

from verifyjs.

Inventame avatar Inventame commented on August 22, 2024

I found a solution, in the object "ValidationForm" on the "init" method remove the line "$(document).ready(this.domReady);" and it will work. Was the solution for me

from verifyjs.

raul1991 avatar raul1991 commented on August 22, 2024

No it wont work i tried.,,,

from verifyjs.

vladzaets avatar vladzaets commented on August 22, 2024

I have the same issue :-(

from verifyjs.

raul1991 avatar raul1991 commented on August 22, 2024

This usually happens when you have hidden fields in your form. When you take them outside the form it works(atleast in my case). @vladzaets

from verifyjs.

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.