PDA

View Full Version : Select not working on Android and iPhone



vishalnnsingh
30 Jan 2011, 10:49 PM
Don't know what's the issue


var locationList = new Ext.form.Select({
placeHolder: "Select Location",
hidden: true,
options: [{
text: "California",
value: "1"
},
{
text: "San Francisco",
value: "2"
},
{
text: "Loas Angeles",
value: "3"
}]
});

mkramb
30 Jan 2011, 11:53 PM
hidden: false ?

vishalnnsingh
31 Jan 2011, 12:20 AM
no that's not the reason, i have just placed hidden true, so that i can show it later on button click.
Anyways thanks man...

Kcarpenter
3 Feb 2011, 6:33 AM
Same issue here, any luck or work around? surely this works for someone. :-/

vishalnnsingh
6 Feb 2011, 8:02 AM
try giving the name config option

Kcarpenter
7 Feb 2011, 5:24 AM
try giving the name config option
HOLY HELL! THAT FIXED IT!
I have to revert a ton of code now from attempting to work around with a list, but this makes it work!:D:D:D:D:D

@vishalnnsingh you rock!;)

vishalnnsingh
7 Feb 2011, 10:34 PM
Hey this solution was given to me by him.
http://www.sencha.com/forum/member.php?22216-mitchellsimoens (so he is the one who rocks :))

joshgubler
15 Mar 2011, 12:23 PM
try giving the name config option
Could you elaborate? Maybe a code snippet?

joshgubler
15 Mar 2011, 12:30 PM
Could you elaborate? Maybe a code snippet?
Never mind. Got it:


var locationList = new Ext.form.Select({
name: "location",
placeHolder: "Select Location",
hidden: true,
options: [{
text: "California",
value: "1"
},
{
text: "San Francisco",
value: "2"
},
{
text: "Loas Angeles",
value: "3"
}]
});

vishalnnsingh
15 Mar 2011, 11:03 PM
Right :)

angeldimitrov
17 Sep 2011, 10:24 AM
Thanks, this was a weird one. The select components was working in safari and on the iPad, but not on the iPhone. Adding name solved the problem!

Thanks again!

Lescot
23 May 2013, 2:01 PM
I tried setting the 'name' property as follows according to previous suggestions (I didn't have the 'name' attribute set originally):

var accountType = new Ext.form.Select({
label: 'Account Type',
cls: 'inputData',
name: 'accountType',
options: [
{text: 'Checking', value: 'Checking'}, {text: 'Savings', value: 'Savings'}
]
});

But it still does NOT work on iPhone 5 (I haven't tried on other mobile devices but I was told the drop-downs don't work on them either). However, above code/set up works (with or without the 'name' property) on mobilizers and simulated web browsers to act as mobile devices as I am able to click and select different options. Any idea what else needs to be done to get the 'Ext.form.Select' to work/ respond (open up/drop down to show different options) to finger tap? In the above code, 'Checking' is selected by default and displays in the drop-down but it won't let me select 'Savings' because it doesn't simply drop down and appears disabled even though it is enabled.

Thanks.