Month: November 2013

How to take a screenshot of the current screen of web page and save it as a png image through phpHow to take a screenshot of the current screen of web page and save it as a png image through php

atul sharma 3 Comments 1:21 pm

// an example html page<!DOCTYPE html><html><head> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> <script type="text/javascript" src="./javascripts/html2canvas.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#screenshot').on('click', function(e){ e.preventDefault(); html2canvas($('body'), { ...

how to calculate price on change of item valuehow to calculate price on change of item value

atul sharma 0 Comments 11:25 am

<script>$(document).ready(function(){  var x=parseInt($(“#env_amt”).val()); var y1=parseInt(0);// alert(x);//———-envolope price———– $(“.parax”).each(function(){  var y=parseInt($(this).val()); //alert(y); y1=y1+y; });  var z=(x*y1); $(“#para1”).html(z);  $(“.parax”).keyup(function(){  var m =parseInt(1);var z1 = parseInt(0); var x=parseInt($(“#env_amt”).val()); var y1=parseInt(0);  $(“.parax”).each(function(){ ...