![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I don't have access to an apple so when visiting a friend this weekend i tried my script on 2 Apples my friend had. My page has a form including a textarea that gets the results. Then my JavaScript uses select all, sets the textarea to have the focus, and sets it to read only. On one of the two Apples (the newer one), Safari seemed to be preventing both copying the selected text to the clipboard and/or dragging the selected text to another window. |
|
Was this do to some setting in Safari? |
#3
| |||
| |||
|
|
Mac OS X does not, in general, support drag-and-drop of text, nor does Safari. (...) |
#4
| |||
| |||
|
|
On Nov 6, 7:59*pm, Tom <supp... (AT) privatejpeg (DOT) com> wrote: I don't have access to an apple so when visiting a friend this weekend i tried my script on 2 Apples my friend had. My page has a form including a textarea that gets the results. Then my JavaScript uses select all, sets the textarea to have the focus, and sets it to read only. On one of the two Apples (the newer one), Safari seemed to be preventing both copying the selected text to the clipboard and/or dragging the selected text to another window. Mac OS X does not, in general, support drag-and-drop of text, nor does Safari. They do support drag and drop of various objects such as URLs and images. Was this do to some setting in Safari? It would help if you: 1. Supplied a minimal example of the code that produces the effect 2. Advised the versions of OS X or Safari tested 3. Told us how you tried to copy the text (e.g. using Edit->Copy, Ctrl +v, right click, and so on) and any other details you feel might be relevant. The following "works" fine in Safari 4.0.3 (Mac OS X 10.6.1): form textarea id="ta0">Here is some text</textarea input type="button" value="Do stuff" onclick=" var ta = this.form.ta0; ta.readOnly = true; ta.focus(); ta.select(); " /form since edit+>copy and dragging worked on my frined's slightly older |
#5
| |||
| |||
|
|
On Nov 6, 12:24*pm, RobG <rg... (AT) iinet (DOT) net.au> wrote: Mac OS X does not, in general, support drag-and-drop of text, nor does Safari. (...) Check it again, Sam. It does drags. And drops too. In Safari. Yes. |
|
-- Jorge. |
#6
| |||
| |||
|
|
On Nov 6, 7:59*pm, Tom <supp... (AT) privatejpeg (DOT) com> wrote: I don't have access to an apple so when visiting a friend this weekend i tried my script on 2 Apples my friend had. My page has a form including a textarea that gets the results. Then my JavaScript uses select all, sets the textarea to have the focus, and sets it to read only. On one of the two Apples (the newer one), Safari seemed to be preventing both copying the selected text to the clipboard and/or dragging the selected text to another window. Mac OS X does not, in general, support drag-and-drop of text, nor does Safari. They do support drag and drop of various objects such as URLs and images. Was this do to some setting in Safari? It would help if you: 1. Supplied a minimal example of the code that produces the effect 2. Advised the versions of OS X or Safari tested 3. Told us how you tried to copy the text (e.g. using Edit->Copy, Ctrl +v, right click, and so on) and any other details you feel might be relevant. The following "works" fine in Safari 4.0.3 (Mac OS X 10.6.1): form textarea id="ta0">Here is some text</textarea input type="button" value="Do stuff" onclick=" var ta = this.form.ta0; ta.readOnly = true; ta.focus(); ta.select(); " /form |
#7
| |||
| |||
|
|
the version of safari that exhibited this strange behavior was 3.2.3 (5525.28.3) |
#8
| |||
| |||
|
|
textarea id="a" readOnly="true">texto de la textarea</textarea input id="b" value="dirección_45" readOnly="true" |
#9
| |||
| |||
|
|
On Nov 7, 12:39 am, Tom <supp... (AT) privatejpeg (DOT) com> wrote: the version of safari that exhibited this strange behavior was 3.2.3 (5525.28.3) Select and drag and drop from <input>s and <textarea>s with readonly="true" is working for me in: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; es) AppleWebKit/ 525.28.3 (KHTML, like Gecko) Version/3.2.3 Safari/525.28.3 and Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-us) AppleWebKit/ 532.4+ (KHTML, like Gecko) Version/4.0.3 Safari/531.9 textarea id="a" readOnly="true">texto de la textarea</textarea input id="b" value="dirección_45" readOnly="true" |
![]() |
| Thread Tools | |
| Display Modes | |
| |