1

Can phonegap use canvas?

view story
linux-howto

http://stackoverflow.com – I am new in programming phonegap using javascript! I am try to use canvas in my project but it's didn't work! This is my code: index.html: <!DOCTYPE html> <html> <head> <script type="text/javascript" charset="utf-8" src="cordova-2.5.0.js"></script> <script type="text/javascript" charset="utf-8"> document.addEventListener("deviceready",onDeviceReady, false); function onDeviceReady() { } var c = document.getElementById("mycanvas"); var ctx = c.getContext("2d"); ctx.fillStyle="#FF0000"; ctx.fillRect(0,0,150,75); </script> </head> <body> (HowTos)