Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Select / OnChange



On Jul 26, 2008, at 11:04 AM, k. alexander wrote:

Recently, the iPhone/iPod Touch Safari onchange behavior for the <select> element stopped working. I think it happened with the 2.0 ipod touch update.

My select box <select > used to trigger an event, but now that event is ignored.

Is this just me? Or are others having this problem?

If you want to see the code: http://latinlexicon.org/search_latin.php ... It's an AJAX application. Please note that if I change the onchange to it still doesn't trigger the event. (In other words, it's not a _javascript_ coding error).

I've tried mouseup, mousedown, keyup, keydown, blur, focus ... None of them work as expected. They all trigger *before* the finger-scroll or *after* you click off the select box. I even tried them on the <option> out of desperation!

Does anyone know of a workaround? I have a feeling this is going to break a lot of applications. I've been googling it for 2 days and I've found nothing useful.

Unfortunately, this is a bug in the iPhone OS 2.0 release:

<rdar://problem/6106609> REGRESSION (1.1.4-2.0): onchange events broken for <select> lists with size or multiple attributes

The only workaround I know of is to remove the "size" and (if set) "multiple" attributes on the <select> element.  However, since all <select> elements are drawn the same way on iPhone OS, this won't change its appearance there.

Thanks!

Dave

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Safari-iPhone-Web-Dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/safari-iphone-web-dev/email@hidden

This email sent to email@hidden

References: 
 >Select / OnChange (From: "k. alexander" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.