Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9162383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:11:58+00:00 2026-06-17T14:11:58+00:00

I created a custom product configurator for a client that uses html2canvas to generate

  • 0

I created a custom product configurator for a client that uses html2canvas to generate an image of the product after they customize it. It was working perfectly before, but now I have realized that it is trying to make a call to: html2canvas.appspot.com and returning a 404 error. Here is my code:

// JavaScript Document
$('#addToCart').live('click', function(event) {
    event.preventDefault();
    var target = $('.customstole');
    html2canvas(target, {
        onrendered: function(canvas) {
            var data = canvas.toDataURL();

            alert(data);
            $("#dataUrl").val(data);
            // data is the Base64-encoded image passed to a hidden input
            $('form#stoleAddForm').submit();
        }
    }); 
}); 

My question is this… how can i modify this code so that it doesn’t make the call to html2canvas.appspot.com at all. I have been reading alot here on stack and googling alot and I’m hearing that since my images and everything are all right there on my page, that I don’t need a “proxy” url. But I try adding proxy: false, proxy: ”, and proxy: undefined and it still keeps making a call out to there.

If you’d like to see this in action and firebug it or whatever its at: http://stoles.com/stoles/page/customStole

The username is : alex
The password is : superman

If you click “add to cart” you’ll see that it throws a 404 error in the JS pane of firebug.

I’m at a loss on this so any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:12:01+00:00Added an answer on June 17, 2026 at 2:12 pm

    I read the sources of html2canvas and it is indeed as you mentioned. If you don’t need a proxy you have to disable this option as it defaults to http://html2canvas.appspot.com/

    Try this:

    // JavaScript Document
    $('#addToCart').live('click', function(event) {
        event.preventDefault();
        var target = $('.customstole');
        html2canvas(target, {
            onrendered: function(canvas) {
                var data = canvas.toDataURL();
                alert(data);
                $("#dataUrl").val(data);
                // data is the Base64-encoded image passed to a hidden input
                $('form#stoleAddForm').submit();
            },
    
            // disable the proxy feature
            proxy : false
        });
    }); 
    

    I’ve tested it using the firebug console, it works! (and firebug rocks!)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom product configurator that saves a canvas element as a
I've created a custom content type: product This product has an image (cck file
I've created custom toggle slide animation. Its working fine as expected but its not
I have created custom cell in which there are n number of image views.
On a custom made product view page i'm working off from there is the
Im currently working on a custom product list in the Magento backend. Heres the
I have created a C++ Custom Action DLL. I have an msi that calld
I'm working with a third-party product. It uses JavaScript (non-JQuery) code on the page
I am currently working on a form that displays information about a specific product
I have been working on a custom module for Magento (ver. 1.8.0.0) that shows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.