HTML Select Tag
This is a discussion on HTML Select Tag within the iPad Development forums, part of the iPad App Store category; I'm writing a web app that runs on the iphone/iPad. I have a listbox with an onChange() javascript event. I notice listboxes on Safari on ...
-
iPad Noob!
HTML Select Tag
I'm writing a web app that runs on the iphone/iPad. I have a listbox with an onChange() javascript event. I notice listboxes on Safari on the iphone/ipad do not fire on the onChange() event. What event should I be using if not onChange? or is there a trick to detecting the onChange() event?
Thanks
-
05-21-2010 12:00 AM
-
iPad Fan!
Sure it does!
<html>
<body>
<select onChange="alert('test');">
<option>Select an option</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</body>
</html>
That worked fine for me on iPad's Safari. Sure you're using the correct tags and there's not a javascript error in there somewhere?
-
iPad Noob!
I think the difference is that my SELECT is a multiple selection listbox. When I select items in the list and then touch the Done button in the list, the list goes away but the JS function does not fire.
PHP Code:
<SELECT NAME="frm_employees_cbo[]" MULTIPLE='multiple' onChange="employee_list_click();">
-
iPad Fan!
Ah yes, I see it with the multiple tag. The cheap "solution" would be to replace the onChange event with onBlur which still works. The better solution would be to investigate the onTouch... events and determine how to detect when a list item is changed, the Done button is tapped or something else is tapped which closes the list.
-
iPad Noob!
Thanks - the onBlur worked perfectly to detect when the Done button is pressed!!
-
iPad Noob!
Options Aren't Showing Up until I click the select element
I have a multi select form element:
Code:
<select id="something" name ="something" onchange="something();" multiple="multiple" >
<option value="something">something</option>
<option value="somethingelse">something else</option>
</select>
On the ipad, the options aren't showing until I click the select element. Before I do that it says "0 Items".
Any idea why? How to fix this? (BTW it works normally on a computer browser (IE, FF, Safari, Chrome, just not on the ipad)
Thanks.
-
iPad Noob!
I don't there is a way to do that. Until you manually select (or programatically select via Javascript) items, it shows 0, which in the iPad case, means no selections. 0 doesn't mean there are no items in the list, it means no items have been selected.
-
iPad Noob!
Okay, that's fine, if that's the default behavior. I haven't been able to find a guide to any of this stuff, so I'm just trying to figure things out as I go. Thanks.
-
iPad Noob!
asp.net Listbox does not render in ipad
The Asp.net list control renders like a dropdown control safari ipad. What is the solution for it?
-
iPad Fan!

Originally Posted by
rfresh
I think the difference is that my SELECT is a multiple selection listbox. When I select items in the list and then touch the Done button in the list, the list goes away but the
JS function does not fire.
..
PHP Code:
<SELECT NAME="frm_employees_cbo[]" MULTIPLE='multiple' onChange="employee_list_click();">
it not good, pls different solutions thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By Isaac Newton in forum iPad General Discussions
Replies: 0
Last Post: 04-01-2010, 11:19 PM
Search tags for this page
html select ipad
,
html select iphone
,
ipad html listbox
,
ipad html select
,
ipad html select box
,
ipad html select multiple
,
ipad html tags
,
ipad listbox
,
ipad multiple select
,
ipad onchange
,
ipad safari listbox
,
ipad select html
,
ipad select list
,
ipad select multiple
,
ipad select tag
,
iphone html select
,
iphone html select multiple
,
iphone select html
,
onchange ipad
,
select html ipad
Click on a term to search for related topics.