下拉列表不适用于web Phone with PhoneGap? [英] Dropdowns don't work on webOS with PhoneGap?
问题描述
我想在我写的PhoneGap应用中使用下拉菜单。它使用一个简单的< select>
:
I'm trying to use a dropdown in a PhoneGap app I'm writing. It uses a simple <select>
:
<select>
<option value="1">First</option>
<option value="2">Second</option>
</select>
这在Android和iPhone上可以正常工作)。但是,它似乎不在webOS上工作(无论是Palm Pre本身还是模拟器)。
This works fine on Android and the iPhone (including behaving like a native drop-down would on those systems). However, it doesn't appear to work on webOS (neither the Palm Pre itself nor the emulator).
< select& code>在屏幕上正常显示,但是当我点击它时,没有任何反应 - 我不能从下拉列表中选择。
The <select>
displays properly on the screen, but when I tap on it, nothing happens--I'm not able to make a selection from the dropdown.
为什么会是这样?
推荐答案
只是做了一些测试...看起来像它不是一个PhoneGap限制,限制 - webOS不支持选择标签(wtf!)。所以这是一个重要的发现...我不知道什么其他标签是不支持的。
Just did some testing ... looks like its not a PhoneGap limitation, but in fact a webOS limitation -- webOS doesn't support select tags (wtf!). So this is a significant discovery ... I wonder what other tags are unsupported.
因此,必须开始调查这个选项。使用Mojo列表选择器窗口小部件替换标签的脚本是一个想法...但这里可能有一些障碍。
So will have to start investigating options for this. A script which replaces tags with Mojo list selector widgets is a thought ... but there may be some hurdles here.
请关注phonegap.com博客卷当我们研究这个。
Stay tuned to the phonegap.com blog roll for updates as we look into this.
这篇关于下拉列表不适用于web Phone with PhoneGap?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!