• 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

    • Dead by Daylight, Two Point Museum, and more join Xbox Free Play Days for the weekend by Pulasthi Ariyasinghe There is a brand-new Free Play Days offer available to Xbox players, giving them a chance to try out a new selection of games over the weekend. Microsoft's latest promotion brings some high-profile titles, including the sports title PGA TOUR 2K25 and the racing sim Assetto Corsa. Almost all the games being offered this time require an Xbox Game Pass subscription, with only one title being available for all players. Starting with the fully free-to-play section, Dead by Daylight is populating it solo. This asymmetric survival horror title should be the most familiar to most gamers, considering its age. The multiplayer four-versus-one asymmetric survival horror game has you assuming the roles of survivors or the killer to see who can come out on top. This Dead by Daylight offer will be available to play until Monday, June 22, giving you an extra day of play compared to the remainder of the Free Play Days titles. Meanwhile, Xbox Game Pass Ultimate, Premium, and Essential members can now try out the well-received tycoon game Two Point Museum, the circuit racing sim Assetto Corsa, as well as 2K's golf sim experience that gives players a career to develop alongside real-world pros and courses. Here are the announced games and the platforms they are available to play on: PGA TOUR 2K25 (Xbox Series X|S) Two Point Museum (Xbox Series X|S) Assetto Corsa (Xbox Series X|S, Xbox One) Dead by Daylight (Xbox Series X|S, Xbox One) To easily find the titles on Xbox consoles, first head to the Store, and then in the sidebar, find the Home section. In there, open the Subscriptions tab. All the games from the Free Play Days collection will show up in this section for quick access. Apart from Dead by Daylight's offer, this week's Free Play Days promotions will end on Sunday, June 21, at 11:59 pm PT.
  • Recent Achievements

    • Week One Done
      Huge Trailer earned a badge
      Week One Done
    • Week One Done
      Classifyskilleducation earned a badge
      Week One Done
    • One Month Later
      eurospharma62 earned a badge
      One Month Later
    • Week One Done
      With What earned a badge
      Week One Done
    • Week One Done
      Harris Gilbert earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      587
    2. 2
      +Edouard
      171
    3. 3
      PsYcHoKiLLa
      74
    4. 4
      Michael Scrip
      66
    5. 5
      neufuse
      64
  • Tell a friend

    Love Neowin? Tell a friend!