开发者

When does a DOJO Event gets fired for DOJO Text Inputs

When does a DOJO Event gets fired ??

For example if i have a DOJO Text Box when does it gets fired whether its on onBlur or onkeyup ??

<div name="Phone" id="wokPhone" invalidMessage="Please enter phone number"
    dojoType="dijit.form.ValidationTextBox" regExp="^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$" label="  Phone Number :" maxLe开发者_开发技巧ngth="10"></div>


By default it fires on the blur/change event, but if you enable intermediateChanges, it will fire for every keyup.

<div name="Phone" id="wokPhone" invalidMessage="Please enter phone number"
    dojoType="dijit.form.ValidationTextBox" regExp="^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$"         
    label="  Phone Number :" maxLength="10" intermediateChanges="true">
</div>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜