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

Extended "ajaxvalidate", new attribute "fieldName" #569

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

PerseusTheGreat
Copy link
Contributor

@PerseusTheGreat PerseusTheGreat commented May 29, 2016

In some development scenarios, developers have to change input[id|name] in different web pages.
Current situations, enforce developers to make input-specific async server validation process for each input[id] or input[name].
Sometimes this server validation process is repetitive and they can not make/write their codes reusable.

By adding new "fieldName" property to "ajaxvalidate" custom validity rule core object, developers can make server codes more reusable and independent from client input[id|name].

Usage 1:

<input type='text' 
    id='Text1' 
    neme='UserID'
    data-ajaxvalidate='path to async server validation handler' 
    data-ajaxvalidatefield='Username' />

Usage 2:

<input type='text' 
    id='Text1' 
    neme='UserID'
    data-ajaxvalidate='{ url: "path to async server validation handler", fieldName: "Username"}' />

In some development scenarios, developers have to change input[id|name] in different web pages.
Current situations, enforce developers to make input-specific async server validation process for each input[id] or input[name].
Sometimes this server validation process is repetitive and they can not make/write their codes reusable.

By adding new "fieldName" property to "ajaxvalidate" custom validity rule core object, developers can make server codes more reusable and independent from client input[id|name].

Usage 1:
<input type='text' 
    id='Text1' 
    neme='UserID'
    data-ajaxvalidate='path to asyc server validation handler' 
    data-ajaxvalidatefield='Username' />

Usage 2:
<input type='text' 
    id='Text1' 
    neme='UserID'
    data-ajaxvalidate='{ url: "path to asyc server validation handler", fieldName: "Username"}' />
@PerseusTheGreat
Copy link
Contributor Author

Hello....
Is there anyone to consider this Pull?

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

Successfully merging this pull request may close these issues.

1 participant