You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: