Dropdowns don't work on webOS with PhoneGap?

百般思念 提交于 2020-01-05 09:25:49

问题


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>

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).

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.

Why might this be?


回答1:


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.

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.

Stay tuned to the phonegap.com blog roll for updates as we look into this.



来源:https://stackoverflow.com/questions/2877597/dropdowns-dont-work-on-webos-with-phonegap

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!