jQWidgets Forums

jQuery UI Widgets Forums Plugins Validator, Drag & Drop, Sortable AJAX custom validation rule

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • AJAX custom validation rule #27229

    luesak
    Participant

    Hi,

    I have a registration form. I need to check whether the email in the form already exists in the database. I am thinking to use a custom validation rule and send an AJAX request to get a count of the email address matching the one that is on the form. If count = 0, then ok if not then fail.

    AJAX being async… wouldn’t the validation rule immediately exit before it even got a chance to return from the database and validate the results?

    Please show an example of how I can achieve this.

    And your forum has no search!!! It’s very difficult to find information.

    Kim

    AJAX custom validation rule #27238

    Peter Stoev
    Keymaster

    Hi Kim,

    1. The Forum has Search and it is on the top-right corner of your screen after logging in. Note the Search button, when you click it, you will see a search textbox.
    2. This is a sample with Ajax Validation: registration_form.htm.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.