I downloaded the html2canvas javascript plugin that allows me to take a screenshot of a web page on the client side (the browser), but I can't figure out what files I'm supposed to include in the header of the page to use it, I've seen examples on how to use it, but what files should I include?
Asked
Active
Viewed 5,799 times
1
-
Can I suggest you take a look at feedback.js? It is a work in progress (not mine by the way) but is a nice wrapper around html2canvas... https://github.com/niklasvh/feedback.js – JP. Sep 09 '12 at 06:36
-
I did look at it, but I don't want the wrapper I want the thing itself Thnx for the suggestion anyways :) – Slim Fadi Sep 09 '12 at 12:01
1 Answers
5
From the various demo pages, it appears you only need the single script(a or b) included in your header.
This is different from an older version of the script, which needed jQuery, html2canvas.js
, and jquery.plugin.html2canvas.js
.
I can't comment on the two other scripts included in the /dist directory(the svg ones), given I can't find any examples of their use.

Daedalus
- 7,586
- 5
- 36
- 61
-
I put jquery and jquery.plugin.html2canvas.js, but there's not html2canvas.js here's the files tree : https://github.com/niklasvh/html2canvas – Slim Fadi Sep 09 '12 at 06:50
-
1@SlimFadi Actually, there is. It isn't in the source you're looking at, but the zip files present on that repository. See [the downloads page](https://github.com/niklasvh/html2canvas/downloads) – Daedalus Sep 09 '12 at 06:53
-
ya got it, thnx a lot :) wish I could vote you up, but it's not letting me because of my "reputation" :) – Slim Fadi Sep 09 '12 at 07:06
-
@SlimFadi If you like this answer, please click the outlined checkmark below the down arrow. This will accept the answer. – Daedalus Sep 09 '12 at 07:07