I am showing document in browser
i want to disable the copy option ctrl + c key in ruby
please help me out
···
--
Posted via http://www.ruby-forum.com/.
I am showing document in browser
i want to disable the copy option ctrl + c key in ruby
please help me out
--
Posted via http://www.ruby-forum.com/.
Sujith Gangaraju wrote:
I am showing document in browser
i want to disable the copy option ctrl + c key in ruby
please help me out
Might work to do it the traditional Ruby way:
http://betterlogic.com/roger/?p=110
windows:
trap :INT, proc { ‘ha got your ctrl-c!’ }
and linux
trap ”SIGUSR1″, proc {’got it in linux, too’}
I think. Maybe add to environment.rb?
--
Posted via http://www.ruby-forum.com/\.
As I see it: he doesn't want the user to copy text.
Not the answer you might expect: don't even try. You showed him the text. If he is serious, he will use the old analog method of copying.
Regards,
Florian Gilcher
On Jul 25, 2008, at 7:19 AM, Roger Pack wrote:
Sujith Gangaraju wrote:
I am showing document in browser
i want to disable the copy option ctrl + c key in ruby
please help me outMight work to do it the traditional Ruby way:
http://betterlogic.com/roger/?p=110
windows:
trap :INT, proc { ‘ha got your ctrl-c!’ }and linux
trap ”SIGUSR1″, proc {’got it in linux, too’}
I think. Maybe add to environment.rb?
-- Posted via http://www.ruby-forum.com/\.
That would stop the Rails application from processing a ctrl-c on the server keyboard (if it has one) but would make no difference in the browser as the Ruby code doesn't run there.
Ellie
Eleanor McHugh
Games With Brains
http://slides.games-with-brains.net
On 25 Jul 2008, at 06:19, Roger Pack wrote:
Sujith Gangaraju wrote:
I am showing document in browser
i want to disable the copy option ctrl + c key in ruby
please help me outMight work to do it the traditional Ruby way:
http://betterlogic.com/roger/?p=110
windows:
trap :INT, proc { ‘ha got your ctrl-c!’ }and linux
trap ”SIGUSR1″, proc {’got it in linux, too’}
I think. Maybe add to environment.rb?
----
raise ArgumentError unless @reality.responds_to? :reason