Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Is IE 8 Support Totally broken?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tazz_ben  
View profile  
 More options Mar 10 2010, 6:32 pm
From: tazz_ben <b...@wbpsystems.com>
Date: Wed, 10 Mar 2010 15:32:32 -0800 (PST)
Local: Wed, Mar 10 2010 6:32 pm
Subject: Is IE 8 Support Totally broken?
So I was doing a basic test to present as a potential solution to
client and I wanted to show just that an image could be rotated and
with excanvas it would work on IE.  While this code works on other
platforms, on IE 8, the Microsoft developer tools throws an error when
I try to access "getContext".  Here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
        <head>
                <!--[if IE]>
                <script type="text/javascript" src="excanvas.js"></script>
                <![endif]-->

        </head>
        <body>
                <canvas id="testimage" width="150" height="150"></canvas>
                <script type="text/javascript">
                        var canvasimage = {};

                        canvasimage.canvas = function (canvasid){
                                var canvasid = canvasid || "testimage";
                                var canvas = document.getElementById(canvasid);
                                var ctx = canvas.getContext('2d');
                                return ctx;
                        }();

                        canvasimage.loadpng = function (){
                                var img = new Image();
                                img.onload = function(){
                                        canvasimage.canvas.drawImage(img,0,0);
                                };
                                img.src = 'test.png';
                                return img;
                        }();

                        canvasimage.rotate = function(degree){
                                canvasimage.canvas.rotate(Number(degree) * Math.PI / 180);
                        };

                        canvasimage.rotate(15);
//                      canvasimage.rotate(-15);
                </script>
        </body>
</html>

Please tell me I'm missing something, without the getContext method,
I'm not sure how excanvas has much value.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabien  
View profile  
 More options Mar 12 2010, 4:43 pm
From: Fabien <phenxdes...@gmail.com>
Date: Fri, 12 Mar 2010 13:43:09 -0800 (PST)
Local: Fri, Mar 12 2010 4:43 pm
Subject: Re: Is IE 8 Support Totally broken?
Yep, you are missing something : reading the docs ;)
http://code.google.com/p/explorercanvas/wiki/Instructions
And sometimes, the initElement needs to be called even when the canvas
tag already exists. There are also a few differences with the native
implementation.

On Mar 11, 12:32 am, tazz_ben <b...@wbpsystems.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aseem Kishore  
View profile  
 More options Mar 12 2010, 5:00 pm
From: Aseem Kishore <aseem.kish...@gmail.com>
Date: Fri, 12 Mar 2010 14:00:12 -0800
Local: Fri, Mar 12 2010 5:00 pm
Subject: Re: Is IE 8 Support Totally broken?

I'm guessing this is because <canvas> elements in the HTML are automatically
initialized -- but that's once the page loads ("document ready"), while your
script is executing -- and using that <canvas> before the page has finished
loading.

Aseem


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »