We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Firefox for Android cannot get values from dropdown list

more options

Developer-related question:

I have a Javascript function written with Coldfusion that can retrieve values from dropdown lists. This works in both IE and Firefox for desktop/PC. However, no matter which value is selected in the dropdown list for Firefox for Android, the value is not updated.

Sample code: (html file) <select name='type_desc_list' size='7' tabindex="-1" style='font-family:Arial;top:200;left:200;position:absolute;visibility:hidden;' onClick='selBoxKeyEvent(this, 13);' onKeyUp='selBoxKeyEvent(this, event.keyCode);' onFocus='selBoxOnFocusEvent(this);' onBlur='hideSelBox(this);'> <option value="Large">Large</option> <option value="Small">Small</option> </select>

(js file) function selBoxKeyEvent(selBox, keyCode) { if (keyCode == 13) { if (getBrowser() == "IE") { var eventX = document.body.scrollLeft + event.x; var offsetScrollBar = 0; if (selBox.size < selBox.options.length) offsetScrollBar = 12;

flgProcesssbox = 'n' if (navigator.userAgent.indexOf('Trident/6') != -1) { flgProcesssbox = 'y' } else {

if (((eventX > selBox.offsetLeft) && (eventX < (selBox.offsetLeft + selBox.offsetWidth - offsetScrollBar))) || (eventX > selBox.offsetLeft + selBox.offsetWidth)) { flgProcesssbox = 'y' } }

if (flgProcesssbox == 'y') { assignValue(selBox); if(nxt_TB != 'n'){goNextIndex(selBox);}

hideSelBox(selBox); } } else { assignValue(selBox); if(nxt_TB != 'n'){goNextIndex(selBox);} hideSelBox(selBox); } } else if (keyCode == 27) { entryArray[0].focus(); } if (selopen== true) { selfocus= true; } }

Developer-related question: I have a Javascript function written with Coldfusion that can retrieve values from dropdown lists. This works in both IE and Firefox for desktop/PC. However, no matter which value is selected in the dropdown list for Firefox for Android, the value is not updated. Sample code: (html file) <select name='type_desc_list' size='7' tabindex="-1" style='font-family:Arial;top:200;left:200;position:absolute;visibility:hidden;' onClick='selBoxKeyEvent(this, 13);' onKeyUp='selBoxKeyEvent(this, event.keyCode);' onFocus='selBoxOnFocusEvent(this);' onBlur='hideSelBox(this);'> <option value="Large">Large</option> <option value="Small">Small</option> </select> (js file) function selBoxKeyEvent(selBox, keyCode) { if (keyCode == 13) { if (getBrowser() == "IE") { var eventX = document.body.scrollLeft + event.x; var offsetScrollBar = 0; if (selBox.size < selBox.options.length) offsetScrollBar = 12; flgProcesssbox = 'n' if (navigator.userAgent.indexOf('Trident/6') != -1) { flgProcesssbox = 'y' } else { if (((eventX > selBox.offsetLeft) && (eventX < (selBox.offsetLeft + selBox.offsetWidth - offsetScrollBar))) || (eventX > selBox.offsetLeft + selBox.offsetWidth)) { flgProcesssbox = 'y' } } if (flgProcesssbox == 'y') { assignValue(selBox); if(nxt_TB != 'n'){goNextIndex(selBox);} hideSelBox(selBox); } } else { assignValue(selBox); if(nxt_TB != 'n'){goNextIndex(selBox);} hideSelBox(selBox); } } else if (keyCode == 27) { entryArray[0].focus(); } if (selopen== true) { selfocus= true; } }

所有回覆 (2)

more options

I dont have much idea about this thing. If you think its a bug, you should file it at https://bugzilla.mozilla.org/enter_bug.cgi

more options

hi poila_invictus

This site is a user support forum for user questions.

The best place to ask developer questions is on stack overflow; please tag your question firefox or html5-apps:

http://stackoverflow.com/questions/tagged/firefox+or+firefox-os+or+html5-apps

hope that helps!

...Roland