在科尔多瓦的Android应用程序内关闭自动完成的文本区域和inputfields [英] Turning off auto-complete for textarea and inputfields in Android Cordova-app
问题描述
我正在使用科尔多瓦(1.9.0),HTML5,JavaScript的Android应用程序(2.3.3)。
I'm working on an Android app (2.3.3) using Cordova (1.9.0), html5, javascript.
这是一个语言培训工具,以便当用户输入他们的文字区域或inputfields答案,我不希望他们看到的建议。
It's a language training tool so when users type their answers in textareas or inputfields, I don't want them to see suggestions.
我试着自动完成的文本区域,并输入标签,以及在表单标签=关闭,但既不工作。有谁知道如何将这些建议了吗?
I've tried autocomplete="off" in the textarea and input tag as well as in the form tag, but neither work. Does anyone know how to turn these suggestions off?
我测试的HTML看起来是这样的:
my test-html looks like this:
<div><b>With form:</b>
<form autocomplete="off">
<p>Wie <input size="5" value="b" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false"> jij?</p>
<textarea spellcheck="false" autocorrect="off" autocapitalize="off" autocomplete="off"></textarea>
</form>
</div>
<div><b>No form:</b>
<p>Jan, ik <input size="5" value="b" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false"> Jan.</p>
<textarea spellcheck="false" autocorrect="off" autocapitalize="off" autocomplete="off"></textarea>
</div>
更新: 我创建了一个HTML的testpage和浏览那里使用的是Android手机,还是遇到同样的自动完成/建议-问题。因此,也许这不是一个科尔多瓦 - 应用程序的问题,而是一个Android浏览器的问题? 看看(在Android手机上) http://jsfiddle.net/f3AJq/
Update: I created a html-testpage and browsed there using an Android-phone, still experiencing the same autocompletion/suggestion-issue. So perhaps this is not a Cordova-app issue, but an Android browser issue? Take a look (on an Android phone) http://jsfiddle.net/f3AJq/
推荐答案
尝试安卓inputType =textNoSuggestions
在你的EditText
try android:inputType="textNoSuggestions"
in you EditText
这篇关于在科尔多瓦的Android应用程序内关闭自动完成的文本区域和inputfields的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!