jQWidgets Forums

jQuery UI Widgets Forums Plugins Validator, Drag & Drop, Sortable Validator and invalid input

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 10 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Validator and invalid input #54437

    Klaus H
    Participant

    Hi,

    if I use a jqwidget and assign it to an id that does not exist, I get an error message in the console. This is very helpful to find typos or in a dynamic HTML environment let’s you realize you forgot to add an element to a document e.g. Now if I use non existant id in a validator, I do not get an error message, but the rest of the javascript that’s suppossed to run stops running because of that. Would it be possible for you to check if an id does exist before when using the validator and in case of an error raise a specific error message like “element with id xyz does not exist for jqxValidator”? Maybe that could be helpful for other users, I guess I am aware of this error by me and am gonna check twice in the future.

    Regards
    Klaus

    Validator and invalid input #54452

    Dimitar
    Participant

    Hello Klaus,

    The ids are checked for each widget, including jqxValidator. You can try this with the following fiddle: http://jsfiddle.net/Dimitar_jQWidgets/YRBzX/. Instead of “testForm”, “testForn” is selected and the error is thrown in the console.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Validator and invalid input #54455

    Klaus H
    Participant

    Hello Dimitar,

    yes, that works, I was talking about the input in the rules array (should have been more clear maybe), if I use a wrong id there (e.g. #emailInputt instead of #emailInput), then I get an error message from jquery file and that had me scratching my head for a few minutes, before I found my mistake, because the specified input was not correctly in the website.

    Regards
    Klaus

    Validator and invalid input #54478

    Dimitar
    Participant

    Hi Klaus,

    I see now what you meant. Thank you for your feedback. We will consider this feature for a future implementation.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.