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: Preventing selection?



On Oct 13, 2005, at 5:15 PM, Troy Dawson wrote:

On Oct 13, 2005, at 2:10 PM, Jim Correia wrote:

I have a webview that I'd like to treat as read-only. Is there a way to prevent selection?

try this:


<style> body { cursor: default; }

and:

<body onload="init()" ondragstart="return false" onselectstart="return false">

if you have CSS happening in your webview...


That solves the problem when I am in control of the content (I am in this case.) For cases where I am not, is here a way to do it programatically?

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

This email sent to email@hidden
References: 
 >Preventing selection? (From: Jim Correia <email@hidden>)
 >Re: Preventing selection? (From: Troy Dawson <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.