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() method unsupported in Safari



On Mar 7, 2006, at 1:27 PM, Vid Boi wrote:

I am
using a dropdown menu that could apply to several
different text fields depending on the context.  I am
using the select() method to emphasize the text that
will be changed.  I would like to select the text the
moment the dropdown menu is clicked (onmousedown
event), so that the user can abort if the wrong text
field has been selected.  But I can't seem to bring
focus to the text field if the dropdown menu is
selected.  Or can I?  What am I doing wrong?

If you put an alert( 'pause' ) at the end of your selectText function, you'll see that it is being selected, but as soon as that function completes, the selection returns to the select just clicked. You can only have one selection at a time, and I don't think it's possible to operate a select without it being selected. What about just changing the background color of the input? That has almost the same visual effect without confusing the meaning of select().


Peace,
Scott



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

This email sent to email@hidden
References: 
 >Re: Select() method unsupported in Safari (From: Vid Boi <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.