开发者

How to make dojo textbox cache the previously entered values

开发者 https://www.devze.com 2023-01-17 05:15 出处:网络
How can I make dojo textbox dijit to remember previously entered values, like a regular text box (开发者_运维百科

How can I make dojo textbox dijit to remember previously entered values, like a regular text box (开发者_运维百科

David


I found this ticket which has a request to enable the autocomplete feature of the dijit textBox.

http://bugs.dojotoolkit.org/ticket/9562

The creator offers the following workaround, which should work (although, I haven't tried it):

dojo.attr(dijit.byId('name').textbox, "autocomplete", "on");

However, note in the ticket that this is not enabled by default due to some complexities it can cause with the onChange event. Mainly, that when a value is "autocompleted" in some browsers, it sounds like won't always fire the onChange event properly. The comment is 14 months old, so that may have been fixed in the browser(s) since then, but I don't know whether it has or not. This workaround may fit your needs regardless.

0

精彩评论

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