• Resolved yoga21

    (@yogeekeye)


    Hi, i am facing a trouble with the plugin, below is the thing that is happening:

    Scenario 1st- When i am going to the post or page where the calculator is shown, without doing any calculation moved down below to read about the topic, there are some images i put to make it understand abt the particular topic, if someone clicks on the image it pop ups and one can close by clicking on X button, every thing is ok and working.

    Scenario 2nd- However if i do any calculation in the calculator field and than moved to read the topic and click on any images and than close the image by clicking on either X or just moving back to the topic, the page or post is taking back to calculator filed both on mobile and desktop. This is only happening on the pages/posts where calculators are.
    so if someone done any calculation and than moved down to read about the topic and clicks on any image, after closing the image it takes it back at the top of the post/pase where calculators are shown and tells to type in the filed.

    I hope you have understood my concern
    thanks for the the help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter yoga21

    (@yogeekeye)

    I just found that it was happening due a plugin which stops copy of your content i disabled it and the issue got resolved, is there any other method?

    Plugin Author codepeople

    (@codepeople)

    Hello @yogeekeye

    As you said in your entry, the issue is caused by a third party plugin and not our plugin. However, if you want to disable the copy/paste or right click in a page, you can use simply:

    
    jQuery(document).ready(function() {
    	jQuery('body').bind('copy paste',function(e) {
    		e.preventDefault(); return false; 
    	});
    	jQuery("body").on("contextmenu", function(e) {
    	  return false;
    	});
    });
    

    So, you can insert a “HTML Content” field in the form with the following piece of code as its content:

    
    <script>
    jQuery(document).ready(function() {
    	jQuery('body').bind('copy paste',function(e) {
    		e.preventDefault(); return false; 
    	});
    	jQuery("body").on("contextmenu", function(e) {
    	  return false;
    	});
    });
    </script>
    

    Best regards.

    Thread Starter yoga21

    (@yogeekeye)

    Thanks for your help buddy, i must say this, your plugin is best????

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not with calculation’ is closed to new replies.