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.

Caută ajutor

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.

Află mai multe

Acest fir de discuție a fost arhivat. Adresează o întrebare nouă dacă ai nevoie de ajutor.

Firefox for Android cannot get values from dropdown list

  • 2 răspunsuri
  • 3 au această problemă
  • 128 de vizualizări
  • Ultimul răspuns de Roland Tanglao

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

Toate răspunsurile (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