3

Screenshot of the window via Javascript or PHP or is there a reliable API to get...

 3 years ago
source link: https://www.codesd.com/item/screenshot-of-the-window-via-javascript-or-php-or-is-there-a-reliable-api-to-get-this.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Screenshot of the window via Javascript or PHP or is there a reliable API to get this

advertisements

Is there any possibility to take screenshot through javascript of window or div elements. I used "HTML5's CANVAS" but the result is not so fine. Or is there any reliable API to get this?


You can use Html2Canvas

This script allows you to take "screenshots" of webpages or parts of it, directly on the users browser.

See Examples at http://html2canvas.hertzen.com/examples.html

Or You can use EaselJS

Export and save a screenshot of an HTML5 Canvas using PHP, JQuery and EaselJS

EaselJS steps:

  • export an HTML5 canvas as PNG image (making a screenshot)
  • send the PNG to a PHP script using jQuery
  • save the PNG on the webserver
  • setup an EaselJS project

Related Articles

iOS hits the x / y coordinates of the interface window via Javascript

I am currently developing a webpage for an iPhone which contains a DIV element that the user can touch and drag around. In addition, when the user drags the element to the top or bottom of the device's screen, I want to automatically scroll the page

Obtain a part of the path via JavaScript regex

I have following url: https://www.example.com/article/f/1/test+article And I need to get "1" part from the url via JavaScript (pure javascript). I know that I can get it with "location.pathname.replace()" but I'm not good with regex. U

$ _GET the variable from javascript to php

my ajax is: add = 'request'; full_val = 'barrack obama'; $.ajax({ url: 'plugins/add_friend.php', data: full_val+'='+add, success: function(data) { } }); if the javascript variable value changes depending on the conditions, then how will i $_GET[] the

Why is there no Android API to get the current activity?

The question, How can I get the current Activity? has been asked dozens of times on Stackoverflow and other sites and there are many proposed approaches. However, all of them have drawbacks in one form or another. In this posting, I am assuming that

Is there an Android API to get the file type using the file format

I am working on an android application and need to filter files using their file format. What I exactly want to do is this: input: "jpg" => output: "image" input: "mp3" => output: "audio" input: "mov"

Opening the facebook connect window via javascript?

When someone tries to login to my site via facebook, he's redirected to a page where he sees all the requested permissions and click to allow / disallow them. Is there any way to have this page open up as a layered window through javascript without h

How to pass the shape parameters to the Action class when opening a jsp in a new window via Javascript

Below is the Javascript function call in which I am calling a struts action which in turn resolves to a jsp .In the Jsp page which is opened in a separate window I have a form with a few text boxes and drop down and a submit button.When I submit the

How to access the child window of the parent window via JavaScript?

Suppose we open a popup through javascript when a link is clicked on parent window. As everybody knows that parent window elements can be accessed from child window using the window.opener() function. Is it possible to do exactly reverse ? Can parent

Control the browser window via Javascript

i have a web app that launches an URL in other windows/tabs. I would like to check if the window/tab exists; if not, i want to create it else i would like to pick it in first position. I use: wf=window.open(address, web_form_target, 'toolbar=1,scroll

Skip Json using Ajax Post via javascript for php does not work

Hi i am trying to send Json via Ajax to PHP using Javascript. The data is sent correctly by index.html when I view it on firebug. It shows Json type with the correct data. However, it seems that I am unable to read the JSON on php. I am unable to acc

What is going on behind the scenes and is this the right way to do it? (Modification of the DOM via Javascript)

Not knowing the proper way, after much research on the web I found so many different ways to do something its confusing. The way I tried, and kinda worked is the following... My CSS #Content { left:0px; top:1px; width:988px; z-index:1; background-col

Sign in Google via Javascript and PHP

Can you tell me please, how can I get user data(name, email) via Google+ Javascript/Php api? I go according this tutorial, which describes how to get authResult['code'] via Javascript. Thats ok I have it. I send it to server via Ajax but I don't know

Obtain server paths via JavaScript vs PHP

Is it cross-browser safe to use JavaScript to fetch server paths? For a Joomla template, I have a number of JavaScript files that will be included via SCRIPT tags; these files need server paths, such as the site root. Here's some JS code that I found

How to get the content of the page after the redirect by javascript in php

How can I get whole page contents after that page redirect by javascript? In executewebpage.php: <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, TRUE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK