GWT, Canvas, and excanvas.js
Hi,
I have been searching for information on excanvas.js and GWT, and I
find a lot of information that is old/obsolete. Some documents say
that you still need excanvas; others do not.
I have tried to make it work by including excanvas.js then creating a
little canvas in my GWT project's html loader page (index.html in my
case).
What I see are two things. First, my little sample canvas draws just
fine in IE8 (I drew a box). But then, my GWT initiated canvas still
doesn't work. My code fails here:
canvas = Canvas.createIfSupported();
if (canvas == null) {
initWidget(new Label("Sorry, your browser doesn't support the HTML5
Canvas element"));
return;
}
It always thinks there's no canvas support.
Can anybody definitively say for version 2.3.0 of GWT 1) whether or
not it should work 2) what steps you need to take to initialize it so
it does?
Thanks,
--Chris
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home