Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: html2canvas_X is not defined #15

Closed
brds85 opened this issue Jul 29, 2015 · 1 comment
Closed

Uncaught ReferenceError: html2canvas_X is not defined #15

brds85 opened this issue Jul 29, 2015 · 1 comment
Labels

Comments

@brds85
Copy link

brds85 commented Jul 29, 2015

I have three different divs that i'm turning into images with id's of "boxBanner", "skyscraperBanner", and "scoreboxBanner". When the user clicks a button, I'm running a function that does the following code for each of the three IDs:

html2canvas($("#[DIV ID HERE]"), {
proxy: "./proxy.php",
onrendered: function(canvas) {
var theCanvas = canvas;
$("#resultsArea").append(canvas);
}
});

This code will only render one of the three images. In the console, I get an error stating "Uncaught ReferenceError: html2canvas_0 is not defined" with a 2 next two it, (one for each of the divs that isn't the first i'm assuming).

Is there a fix for this?

@brcontainer
Copy link
Owner

Sounds like bug in html2canvas and not in proxy, see this pullrequest: niklasvh/html2canvas#554

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants