This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

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; } }

All Replies (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