jQuery UI Widgets › Forums › General Discussions › Plugins › Validator, Drag & Drop, Sortable › Validator actions and javascript events – what exactly is the relationship?
Tagged: actions, jqxvalidator, js events
This topic contains 2 replies, has 2 voices, and was last updated by alastairwalker 9 years, 3 months ago.
-
Author
-
September 22, 2016 at 1:33 pm Validator actions and javascript events – what exactly is the relationship? #87629
I am trying to relate the actions in the API documentation (i.e. ‘blur’) with javascript events i.e. the list below, as a sample:
onblur – When a user leaves an input field
onchange – When a user changes the content of an input field
onchange – When a user selects a dropdown value
onfocus – When an input field gets focus
onselect – When input text is selected
onsubmit – When a user clicks the submit button
onreset – When a user clicks the reset button
onkeydown – When a user is pressing/holding down a key
onkeypress – When a user is pressing/holding down a key
onkeyup – When the user releases a key
onkeyup – When the user releases a key
onkeydown vs onkeyup – BothTo use a js event like ‘onblur’ do I simply write the action part of the rule as
action: onblur
It is not clear how the js actions are mapped to the Validation references i.e. how ‘blur’ is mapped to ‘onblur’.
Any explanation will be helpful.
Many thanks,
Alastair Walker
September 26, 2016 at 11:32 am Validator actions and javascript events – what exactly is the relationship? #87696Hi alastairwalker,
This is just the way your write the event in the validator
actionprop.OnBlurisBlur,OnKeYUpisKeyUpand so on.
And yes the event is the same as in the JS. When you set theactionprop to lets sayKeyUpits checking the rule when the user releases a key – same as in the JS.Best Regards,
IvojQWidgets Team
http://www.jqwidgets.com/September 27, 2016 at 9:08 am Validator actions and javascript events – what exactly is the relationship? #87720Many thanks for response!
It is still not clear to me how the mapping/translation is performed between the jqxValidator term i.e. ‘blur’ and the javascript event (say ‘onBlur’).
Is the user/designer responsible for the mapping, or is this mapping undertaken within the jqxValidator widget?
Kind regards,
Alastair
-
AuthorPosts
You must be logged in to reply to this topic.