• 0

Question

Hey,

I've got a simple canvas drawing script setup, so that a user can click and draw on the canvas (for signing a signature).

The canvas is then converted into an image and uploaded to the server.

To display this file on the site, i used an iframe.

This setup works fine in the chrome and firefox.

however, in IE9 im unable to draw on the canvas when its in an iframe.

If i access the file directly in IE9, the canvas works perfectly.

To start with i thought it was a javascript error, but IE9 isn't saying there are errors, and other js still functions on the page.

Is this a bug? a problem with my code? or just a problem with IE?

Any information on this would be greatly appreciated as im going crazy trying to fix this.

Thanks in advance,

Mike

2 answers to this question

Recommended Posts

  • 0

Is the iframe hosted on the same (sub)domain as the main page? this would include making sure they're both http or https, as IE sees them as different domains and might be giving you issues because of that.

/guess

Thanks for the quick response :D

hmm... i dont think thats the problem here.

Im using a relative link for my iframe, plus non www. does not work currently and i dont have https.

The only way to access the site is http://www.mydomain.com

Having done some more debugging, i can see that the js is being called but its just not draw on the canvas.

I used code from an example posted on the opera blog.

http://jsfiddle.net/qugTs/ - code in an iframe - doesnt work in IE9 but does in Chrome

http://dev.opera.com/articles/view/html5-canvas-painting/ - original article

Anyone else got ideas on how to solve this?

Thanks in advance

Mike

This topic is now closed to further replies.
  • Posts

    • I used a Pixel 10 Pro XL when it first came out for about 8 months. When I first got it, it was using Google assistant and that was fast, when asking it to call somone etc. Then it automatically switched with some update to Gemini. Doing even the simplist of things like asking it to call someone in my contacts was soooooo slow compared to Google assistant. I guess it had to go out to the cloud to do that? Back on iPhone and while Siri is dumb right now, it does do those simple things, like call someone, set a timer, star the stop watch etc, really fast. That an while I like Google Material Design 3 over iOS 26, they Pixel 10 Pro XL was so slow in comparison to the iPhone 17 Pro I am using.
    • I use Gemini in my rotation of AI clients...that work pays for. It is good at most things, better than copilot for imgage searching and making images, worse at writing vs Claude and way worse at hadling technical issues when it comes to Azure stuff. I also use YT premium and maps. Anything else Google is a pass for me. I have now seen multiple people locked out of their Google accounts for reasons that are just very vauge.
    • Microsoft is building an AI datacenter that "uses less water than a fast food restaurant" by Ivan Jenic Image: Microsoft Microsoft has announced plans to build a new datacenter campus in Pecos, Texas, as the company continues to invest billions in AI infrastructure. The new facility, called project Kilby, will reportedly have a capacity of 2 gigawatts and will be one of the largest single capacity additions in the company’s history. To power the campus, Microsoft signed a 20-year deal with Chevron to supply natural gas from the Permian Basin, America's largest oil field. This deal is set to become the largest collaboration to date between a U.S. oil and gas giant and Big Tech. It’s no secret that Big Tech has often been criticized for exploiting natural resources for its AI developments. Microsoft is trying to mitigate some of that negative consensus by promising to build its own power supply for the new datacenter, independent of the public grid. The Pecos datacenter will be powered by a power plant hub, built by Chevron, with up to 2.5 gigawatts of gas-fired capacity, with potential to scale to up to 5 gigawatts. The facility will include at least seven GE Vernova turbines, with first power potentially coming online as early as late 2027 or early 2028. The power plant hub is part of an approximately $7 billion investment by Chevron, making it one of the largest dedicated energy projects tied to a single datacenter campus in the U.S. Microsoft hasn’t publicly disclosed the amount it’s investing in the new datacenter. Microsoft has also committed to implementing a closed-loop cooling system that will only require an initial water charge to operate. The company said that “the total lifecycle water use of this datacenter is only a fraction of that consumed annually by a typical fast-food restaurant.” What the press release doesn’t mention, however, is how much water the natural gas plant itself will consume, or how a 20-year fossil fuel commitment squares with the company's pledge to be carbon negative by 2030. The construction of the new datacenter should provide over 6,000 construction jobs at peak build-out, and create hundreds of operational job roles once the facility is built. Via: Reuters
    • A lot of uncertainty in this story. Might. Could. Maybe. The truth is we don't know what will happen to the universe in the end, or if it will end. Our own Milky Way galaxy will merge with the Andromeda galaxy in about 2.5 billion years, with our solar system as part of a new, larger cluster. I guess we'll have to and see how it goes down.
  • Recent Achievements

    • Dedicated
      tuben earned a badge
      Dedicated
    • Week One Done
      mnsgroup earned a badge
      Week One Done
    • Conversation Starter
      sumytbe earned a badge
      Conversation Starter
    • One Year In
      B4dM1k3 earned a badge
      One Year In
    • One Year In
      DarkWun earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      523
    2. 2
      +Edouard
      195
    3. 3
      PsYcHoKiLLa
      94
    4. 4
      Michael Scrip
      82
    5. 5
      Steven P.
      67
  • Tell a friend

    Love Neowin? Tell a friend!