Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-16 Thread prasanthi_ofbiz
Dear Ankit, I want to restrict the back link click in entire ofbiz[Accounting,AP,AR] application. Where I have to add your code?. Is it global specification or module wise? Regards Prasanthi -- View this message in context:

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-16 Thread Ankit Jain
Hi Prasanthi, Include the code in a js file and add that file in the main decorator, so it will everywhere in the module. -- Thanks Regards: Ankit Jain Enterprise Software Developer Hotwax Media Pvt. Ltd. www.hotwaxmedia.com On Wednesday 16 June 2010 12:06 PM, prasanthi_ofbiz wrote: Dear

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-16 Thread Ankit Jain
Hi Prashanti, Search the common js file which is loading in the [Accounting, AP, AR] module then put your code in that file, take help of firebug. or you can just add a new js file in the accounting's main-decorator as given below eg. set field=layoutSettings.javaScripts[]

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-16 Thread prasanthi_ofbiz
Dear Ankit, I have added this code in the prototype.js like onRightClick: Event.observe(window, 'contextmenu', function(event) {event.stop();}); This will restrict user on right click. But its not restrict user to click on 'Back' link of browser. How to resolve the same Regards, Prasanthi --

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-16 Thread Jacques Le Roux
I think it's time for you to help yourself https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-AjaxJavascriptJson Jacques From: prasanthi_ofbiz prasanthi.sreeramjammise...@tcs.com Dear Ankit, I have added this code in the

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-16 Thread Ankit Jain
Hello Prasanthi, I think you have to read the previous mails of the this thread, Sachin Kanojiya already replied to this. This is another way of doing the same, place window.history.forward(0); on window load event.like Event.observe(window, 'load', function() {...}); And one

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-06 Thread Ankit Jain
Hi, I found another way of doing the same, as it(contextmenu) is an event so we can do it like below : Event.observe(window, 'contextmenu', function(event) { event.stop(); Thanks Ankit Jain On Wednesday 02 June 2010 10:01 PM, Ankit Jain wrote: Hi, For disabling right click you can use the

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-02 Thread sachin kanojiya
Hello, You can restrict your user to go back using this javascript. script type=text/javascript window.history.forward(0); /script Regards Sachin kanojiya

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-02 Thread Ankit Jain
Hi, For disabling right click you can use the following code : script type=text/javascript document.oncontextmenu=new Function(return false) /script -- Thanks Regards: Ankit Jain Enterprise Software Developer Hotwax Media Pvt. Ltd. www.hotwaxmedia.com On Wednesday 02 June 2010 05:36 PM,

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-02 Thread BJ Freeman
might also add that if your doing this to stop theft of content or pictures it does not work against spiders and bots. only against people using a web browser = BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-02 Thread Jacques Le Roux
If you want to specifically protect some views from theft, you may use https://demo-trunk.ofbiz.apache.org/partymgr/control/EditSecurityGroupProtectedViews?groupId=ACCTG_FUNCTNL_ADMIN Jacques From: BJ Freeman bjf...@free-man.net might also add that if your doing this to stop theft of content

Re: How to disable right click and back buttons after logged in into ofbiz

2010-06-02 Thread BJ Freeman
thanks saw that but have not investigated it. = BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation http://www.businessesnetwork.com/automation/viewforum.php?f=52 Specialtymarket.com http://www.specialtymarket.com/ Systems Integrator--

How to disable right click and back buttons after logged in into ofbiz

2010-06-01 Thread prasanthi_ofbiz
Hi, How to restrict the right click and Back link of browser in the ofbiz application Regards Prasanthi -- View this message in context: http://ofbiz.135035.n4.nabble.com/How-to-disable-right-click-and-back-buttons-after-logged-in-into-ofbiz-tp2238341p2238341.html Sent from the OFBiz - User