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



It seemed that you wanted to draw attention to the text area as you were altering the text because of the dropdown. I can't understand from a UI perspective why you would want 2 controls for the same field, but to accomplish what you want here's the pattern:

On the onmousedown event for the dropdown, alter the color of the textarea to draw attention. Onmouseup or onchange set focus on the text area as you alter the text. If you don't require attention to be drawn to the textarea while you are changing the dropdown, you can eliminate the color change & just setfocus onmouseup for the dropdown, or onchange if you only need it selected when the selection has changed.


On Mar 7, 2006, at 5:50 PM, Vid Boi wrote:


I understand that the text field and the dropdown menu can't both be selected at the same time. That's my dilemma. So what can I do?

Scott Reynen wrote:

What about just changing the background color of the
input?


Niels Meersschaert wrote:

Instead of using the text selected, you might
consider using a css change to
provide some highlighting of the text.


Changing the background color has been my workaround, but it just seemed a bit cheesy. The issue is what color to use. On my mac, the default selection color is light blue, but I can't assume it will be the same for every user. Grey is the default color on my PC.

In the end, I want the text to be selected in the
normal sense, so that the text can be replaced as soon
as the user starts typing.  After an option has been
selected, I reset the background color to white, bring
focus to the textfield and select it for further
editing.  This works the way I want if the background
color matches selection color, but is a bit jarring if
they don't match.  Any suggestions?



_______________________________________________ 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.