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!