File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes jsp page table has right click disabled. Why? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "jsp page table has right click disabled. Why? " Watch "jsp page table has right click disabled. Why? " New topic
Author

jsp page table has right click disabled. Why?

Tiya Khambadkone
Ranch Hand

Joined: Sep 15, 2011
Posts: 52
I am using jsp, js, json and dojo. The table on my page which uses a div tag, has right click functionality disabled . I want to enable copy-paste functionality. How can I do that ? I have no clue what makes a right-click functionality disabled ?
sri ramvaithiyanathan
Ranch Hand

Joined: Nov 20, 2010
Posts: 109
Let me ask you one question, why you have disabled right click funcitonality and why you want to enable it again.
If you not disabled it means, may be your ancestor used javascript functionality to disable the right click functionality.

I dont think you can enable right click only for copy and paste.

select the value which you want to copy and use ctrl+c and ctrl+ v
As of now, I got only this solution for you.

For java examples,ebooks,interview questions,visit this blog
http://periodicupdates.blogspot.com/
Tiya Khambadkone
Ranch Hand

Joined: Sep 15, 2011
Posts: 52
I found a solution.. this was done by dojo...
Dojo.DataGrid definition had selected = "false" ..

I changed it to true and atleast I can now select the text on my JSP page and use Cntrl-C, Cntrl-V.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp page table has right click disabled. Why?