View Full Version : Possible Copy Button!
Mekhu
September 14th, 2001, 10:39
if you go here www.edupraxis.ca you will notice at the top of the page I have back, forward, print, etc buttons...
Is it possible to get a copy button!?
Thanks,
Mekhu
LeX
September 14th, 2001, 11:50
Copy what?
Mekhu
September 14th, 2001, 12:11
like the basic copy command...(edit-->copy) or ctrl + c....
but in a button format...
Example:
Print = window.print()
Copy = ?
308holes
September 14th, 2001, 22:12
thats what im trying to get
sp0radic
September 15th, 2001, 02:22
Try some javascript + dynamic html sites
Mekhu
September 15th, 2001, 02:31
Looked through em all...emailed all the owners...
I am gonna say this does not exist :(
Mekhu
meow
September 15th, 2001, 07:11
Still - copy what? The input of some text box or selected text on the page???
308holes
September 15th, 2001, 14:08
slelected text
sp0radic
September 15th, 2001, 18:33
Originally posted by Mekhu
Looked through em all...emailed all the owners...
I am gonna say this does not exist :(
Mekhu
It does, give me day and I'll have it for you. (hopefully) :cool:
Mekhu
September 15th, 2001, 18:44
That would be amazing if you could get me that!
Mekhu
LeX
September 15th, 2001, 21:12
Try doing a request here (in the request forum obviously): http://freewarejava.com/cgi-bin/Ultimate.cgi
308holes
September 16th, 2001, 22:45
come on some one has to know this
meow
September 16th, 2001, 23:01
Don't think JavaScript can do it. But what do I know. :ditsy2:
Bruce
September 16th, 2001, 23:04
Originally posted by meow
But what do I know.
not too much. :D
j/k
meow
September 16th, 2001, 23:07
(_o_)
308holes
September 16th, 2001, 23:45
Phronzen do yo know how to do it?
meow
September 16th, 2001, 23:49
Yeah Phronzen, do you? :devious2:
Canuckkev
September 16th, 2001, 23:53
I think I answered this before...
Not that I know at all, but I doubt a java script could have access to a visitors clipboard. Maybe if you describe the reason you need a copy function we can figure out a work around.
Mekhu
September 17th, 2001, 00:30
Basically I just wanted it so someone could copy the text they select off my site.
I notice dyanamic drive has a script that auto copies what the user selects...could anyone modify that?
Mekhu
meow
September 17th, 2001, 00:39
No, but I would like to see the script. Where is it? Direct link, please. :biggrin2:
Dusty
September 17th, 2001, 07:05
Is it possible to interact with the clipboard? Short answer no with an except, long answer yes with a but.
Long answer:
Yes, Netscape 6.1 (maybe 6.0, but I don't think so) will allow you to copy to and paste from the clipboard. I don't know how off-hand, I know I've seen it before. But, that's the only browser I know of that allows you to. I've also seen a script that claimed to work in IE, but it didn't when I tested it (sorry, I don't remember the URL). Plus, it's quite easy to get the selected text from a text field, but I'm not so sure how you'd go about getting the selected text from the page itself.
Canuckkev
September 17th, 2001, 18:58
To clarify...
The copied text will be used in another application, outside of their browser?
Epgs
September 17th, 2001, 21:45
most likely
Mekhu
September 17th, 2001, 23:52
Yeah Canuck...
sp0radic
September 18th, 2001, 03:21
Sorry I couldn't find one. I thought I found one, but it only a "select all" script.
308holes
September 21st, 2001, 03:08
their right it cant be dune with JavaScript but it can be dune in DHTML ill send you the link on ICQ later bro:D
meow
September 21st, 2001, 06:22
Sure. Just leave the rest of us out. :rolleyes:
308holes
September 21st, 2001, 11:12
I will post the Script in 1 hour let me mod it so it runs with out hilighting every thing on you page
308holes
September 21st, 2001, 12:55
ok here it is!!
<input type="button" value="Copy" onClick="javascript:execCommand('Copy');" style="font-family:verdana; font-size:10; background-color:Darkgreen; color:#FFFFFF; font-weight: bold;">
Dusty
September 21st, 2001, 13:10
Didn't work. :confused:
308holes
September 21st, 2001, 13:22
Hmmm well try this the problem is the Forum is putting a space between the Java and the Script just remove the space
<input type="button" value="Copy" onClick="javascript:execCommand('Copy');" style="font-family:verdana; font-size:10; background-color:#0066CC; color:#ffffff; font-weight: bold;">
PS.. ITs NOT PHP i just wanted some color :-)
meow
September 21st, 2001, 13:32
Damnation! I would never have thought! Right on, 308holes! :)
Dusty
September 21st, 2001, 13:35
Nope, still didn't work. Do you have to use some particular browser or...?
308holes
September 21st, 2001, 14:41
ahh i dont know but if i had to guess i would say Explorer4+
308holes
September 21st, 2001, 14:43
ok try this one with out color
<input type="button" value="Copy" onClick="java script:execCommand('Copy');" >
Cyber
September 21st, 2001, 15:41
does it work?
also, wuts it copying?
308holes
September 21st, 2001, 18:02
yes it works see for your self
www.programminghelper.com/testlayout2.htm
it copys selected text because im useing a custom right click menu and Newbies dont know the Ctrl+C
Cyber
September 21st, 2001, 18:05
niiiiiiiice
meow
September 21st, 2001, 18:50
Yeah, but that was one persistent big pop-up. I can't close it. :confused:
308holes
September 21st, 2001, 19:31
realy huh where you hitting the X ?? Ill look in to that . What is your screen setting? 800x600?its not so big on mine because i made it under 1024x786 i think that right but thanks for the complaments ill make the window smaler and look in to the closeing problem
Did you get the copy code to work?
Cyber
September 21st, 2001, 19:33
Originally posted by 308holes
realy huh ill look in to that what is your screen setting? 800x600?
it not so big on mine because i make it under 1024x786 i think it is but that for the complaments ill make the window smaler
Did you get the code to work?
its 1024x768 :biggrin2:
308holes
September 21st, 2001, 19:37
thanks
Cyber
September 21st, 2001, 19:38
welc & theres an error on the page you showed
308holes
September 21st, 2001, 19:39
?
Cyber
September 21st, 2001, 20:10
dont know the error, but there is one
308holes
September 21st, 2001, 20:55
ok you said their a error on my site then you say you dont know where???? then how do you know their an error?
Dusty
September 21st, 2001, 21:33
Nope, the syle's got nothing to do with it. Must only work in IE, I guess.
After visiting your site, I discovered that you have many errors, I'll copy them here for you:
1. Error: cell14 is not defined
2. Error: cell14 is not defined
3. Error: cell11 is not defined
4. Error: cell11 is not defined
5. Error: cell10 is not defined
6. Error: cell10 is not defined
7. Error: cell9 is not defined
8. Error: cell9 is not defined
9. Error: cell8 is not defined
10. Error: cell8 is not defined
11. Error: cell7 is not defined
12. Error: cell7 is not defined
13. Error: cell8 is not defined
14. Error: cell8 is not defined
15. Error: option8 is not defined
16. Error: cell8 is not defined
17. Error: option8 is not defined
18. Error: cell8 is not defined
19. Error: cell7 is not defined
20. Error: cell7 is not defined
21. Error: cell5 is not defined
22. Error: cell5 is not defined
23. Error: cell3 is not defined
24. Error: cell3 is not defined
25. Error: cell2 is not defined
26. Error: cell2 is not defined
27. Error: option1 is not defined
28. Error: cell2 is not defined
29. Error: option1 is not defined
30. Error: cell2 is not defined
31. Error: cell2 is not defined
32. Error: cell2 is not defined
33. Error: option1 is not defined
34. Error: cell2 is not defined
35. Error: option1 is not defined
36. Error: cell2 is not defined
37. Error: cell3 is not defined
38. Error: cell3 is not defined
39. Error: option2 is not defined
40. Error: cell3 is not defined
41. Error: option2 is not defined
42. Error: cell2 is not defined
43. Error: cell3 is not defined
44. Error: cell3 is not defined
45. Error: cell2 is not defined
46. Error: cell2 is not defined
47. Error: option1 is not defined
48. Error: cell2 is not defined
49. Error: option1 is not defined
50. Error: cell2 is not defined
51. Error: option1 is not defined
52. Error: cell2 is not defined
53. Error: cell2 is not defined
54. Error: cell2 is not defined
55. Error: cell2 is not defined
56. Error: option1 is not defined
57. Error: cell2 is not defined
58. Error: cell2 is not defined
59. Error: cell2 is not defined
60. Error: option1 is not defined
61. Error: cell2 is not defined
62. Error: option1 is not defined
63. Error: cell2 is not defined
64. Error: cell2 is not defined
65. Error: cell2 is not defined
66. Error: option1 is not defined
67. Error: cell2 is not defined
68. Error: option1 is not defined
69. Error: cell2 is not defined
70. Error: cell3 is not defined
71. Error: cell3 is not defined
72: Error: undetermined, line 11
Canuckkev
September 21st, 2001, 21:43
Good job! Shows what I know...:o
meow
September 21st, 2001, 22:03
Originally posted by 308holes
realy huh where you hitting the X ?? Ill look in to that . What is your screen setting? 800x600?its not so big on mine because i made it under 1024x786 i think that right but thanks for the complaments ill make the window smaler and look in to the closeing problemI'm on 1024*768, IE5. The window can't be closed at all. Not with the X, it doesn't show in the Ctrl+Alt+Delete list and Alt+F4 kills the main window.
It's not a pop-up. What is it - some layer thing?
308holes
September 22nd, 2001, 02:30
what browser are you useing?
and what version
and thows errors wont dont mean anything did you use tidy to find that out
LeX
September 22nd, 2001, 02:36
Originally posted by Canuckkev
Good job! Shows what I know...:o It's not really hard to do... just double click on that error image at the status bar when it shows up to see the error(s).
LastActionHero
September 22nd, 2001, 07:01
so what is this thread about? Can somebody explain and I visited that programminghelper site and that page has tonnes of errors and doesn't display correctly.
I'm confused :confused:
R. K. Raja
September 22nd, 2001, 11:12
It would be wise to read the the thread title and the first post before saying you don't know what it's about....
BTW, are you really from New Delhi?
meow
September 22nd, 2001, 13:11
I'll explai nto you lah, my friend! :)
execCommand('Copy') is the JaveScript solution to copy selected text in IE.
308holes
September 22nd, 2001, 13:19
I allrdy posted that lol
LastActionHero
September 23rd, 2001, 05:27
Thanks meow, I got that.
R. K. Raja : Yes I'm really from New Delhi.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.