tag:blogger.com,1999:blog-7529341288156225989.post7899932330033291913..comments2023-08-27T01:51:33.931-07:00Comments on Explorer Canvas Blog: New Explorer Canvas ReleaseErik Arvidssonhttp://www.blogger.com/profile/12794753311478261999noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-7529341288156225989.post-20490388978494835772010-09-28T00:45:11.141-07:002010-09-28T00:45:11.141-07:00Is there any idea to save in bitmap the vml code i...Is there any idea to save in bitmap the vml code in canvas which is generate from exCanvas?Unknownhttps://www.blogger.com/profile/15633972594133804836noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-22690701982447198232010-08-26T02:22:52.484-07:002010-08-26T02:22:52.484-07:00Thanks a lot, I do like this code very much. Howev...Thanks a lot, I do like this code very much. However, currently I cannot use the clipping and arcto functions. Would you please show me a way to accomplish this?Khoa Danghttps://www.blogger.com/profile/05496171197412010328noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-87114673945443599142010-06-08T04:46:41.425-07:002010-06-08T04:46:41.425-07:00I wrapped my canvas inside a pair of div tags to s...I wrapped my canvas inside a pair of div tags to solve that annoying el.innerHTML=''; "unknown runtime error" bug.<br /><br /><div><canvas id='DrawingCanvas' width='100' height='100'></div><br /><br />I'm using IE8.Frank DeCairehttps://www.blogger.com/profile/04223513153115526418noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-37476452098694291152010-03-24T15:00:10.720-07:002010-03-24T15:00:10.720-07:00I too had the same problem as others here - "...I too had the same problem as others here - "Unknown runtime error" at the following line:<br /><br />el.innerHTML = '';<br /><br />I solved the problem by creating the "canvas" tag using :<br /><br />document.createElement("canvas")<br /><br />instead of :<br /><br />parentTag.innerHTML = '...'B S Navinhttps://www.blogger.com/profile/12512177877144866132noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-80618987043197285792010-03-20T10:27:32.586-07:002010-03-20T10:27:32.586-07:00This comment has been removed by the author.Simsonhttps://www.blogger.com/profile/07177131044525100645noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-66667751240226924032009-12-15T22:37:21.701-08:002009-12-15T22:37:21.701-08:00Hi
Can anyone tell me how to save the xcanvas draw...Hi<br />Can anyone tell me how to save the xcanvas drawing image to the server.Unknownhttps://www.blogger.com/profile/14417184903753492556noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-67098778520379417122009-12-10T05:56:14.558-08:002009-12-10T05:56:14.558-08:00I got the same err on surfaceElement.appendChild(e...I got the same err on surfaceElement.appendChild(el). I'm adding a canvas element dinamically and then I init with initElement. This worked on ie6/7 with excanvas 2 but now on excanvas3 is not working any more. Any ideas?Unknownhttps://www.blogger.com/profile/12235494942925616532noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-90398211651924936602009-07-16T09:00:01.638-07:002009-07-16T09:00:01.638-07:00Hi!
Michael: when you said
here is the jquery.flot...Hi!<br />Michael: when you said<br />here is the jquery.flot code:<br />canvas = $('<canvas width="' + canvasWidth + '" height="' + canvasHeight + '"></canvas>').appendTo(target).get(0);<br />if ($.browser.msie) {<br />// excanvas hack<br />canvas = window.G_vmlCanvasManager.initElement(canvas);<br />}<br />ctx = canvas.getContext("2d");<br /><br />Try use it:<br /> var canvasHTMLDOM = document.createElement("canvas");<br /> jQuery(target).append(canvasHTMLDOM);<br /> if ($.browser.msie) {<br /> // excanvas hack<br /> canvas = window.G_vmlCanvasManager.initElement(canvas);<br /> }bblancohttps://www.blogger.com/profile/00407607724003915935noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-50885139018925519282009-05-12T15:24:00.000-07:002009-05-12T15:24:00.000-07:00Thought I would give you a URL if you wanted to se...Thought I would give you a URL if you wanted to see the problem I am having with IE 8... the pop-ups are being rendered without any background<br /><br />(http://olympicpeninsulawaterfalltrail.com/map)zachttps://www.blogger.com/profile/01441227042969552486noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-43647377243353120772009-05-12T15:20:00.000-07:002009-05-12T15:20:00.000-07:00Hi Erik,
I do not really understand those instruc...Hi Erik,<br /><br />I do not really understand those instructions.. where does that code go? I am getting the unknown runtime error with el.innerHtml = ''; as well but I do not understand how to fix this. Can you please clarify?zachttps://www.blogger.com/profile/01441227042969552486noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-69295073960121086242009-04-24T10:08:00.000-07:002009-04-24T10:08:00.000-07:00Jerry: That one has been resolved. See http://code...Jerry: That one has been resolved. See http://code.google.com/p/explorercanvas/wiki/InstructionsErik Arvidssonhttps://www.blogger.com/profile/12794753311478261999noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-65018392006368177012009-04-24T03:38:00.000-07:002009-04-24T03:38:00.000-07:00I was using excanvas 2 with a jquery plugin that p...I was using excanvas 2 with a jquery plugin that previously worked under IE 8, but with the latest release, it yields the error on line 144 as mentioned above. I suppose the plugin (http://plugins.jquery.com/node/7292) will need to be updated to work properly with this version of excanvas.jerry62https://www.blogger.com/profile/06618695190378117195noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-25638915387939699212009-03-30T14:00:00.000-07:002009-03-30T14:00:00.000-07:00In my situation, adding the following was the only...In my situation, adding the following was the only way to get the child element of the canvas to get it's dimensions set on load: In initElement - added: el.attachEvent('onpropertychange', onResize);Ryan Leachhttps://www.blogger.com/profile/11069027731383680669noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-77400556330590567062009-03-30T11:15:00.000-07:002009-03-30T11:15:00.000-07:00Posted bugs on google code site with test cases. ...Posted bugs on google code site with test cases. Rotate is shot in IE8Ryan Leachhttps://www.blogger.com/profile/11069027731383680669noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-6367081122680775052009-03-27T11:46:00.000-07:002009-03-27T11:46:00.000-07:00So the problem seems to be in the context.translat...So the problem seems to be in the context.translate area. I have a thorough test case for you here: <A HREF="http://www.rbldesigns.com/excanvas/testcases/translate-and-rotate-images.html" REL="nofollow">test case</A>. I'm gonna keep trying to nail down the specifics, but I thought I'd share the test case to get us on the same page. Many thanks for the efforts past and present.Ryan Leachhttps://www.blogger.com/profile/11069027731383680669noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-1415973698429306822009-03-26T22:34:00.000-07:002009-03-26T22:34:00.000-07:00Michael: That should work. Do you have a test case...Michael: That should work. Do you have a test case online?<BR/><BR/>Ryan: We initialize all the canvas elements every time document.onreadystatechange fires. It is possible that the code you use to "fire" dom:loaded happens before our code and therefore the canvas is not initialized. I would also like to see a test case where drawImage fails.Erik Arvidssonhttps://www.blogger.com/profile/12794753311478261999noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-89005375906615531552009-03-24T10:50:00.000-07:002009-03-24T10:50:00.000-07:00I am seeing an issue in both ie6 and ie7 where cal...I am seeing an issue in both ie6 and ie7 where calling drawImage multiple times on the same canvas causes unexpected spaces between the rendered images even though their coordinates are exactly next to each other. Also, in ie8, the elements are not immediately interactive on dom:loaded as they used to be.Ryan Leachhttps://www.blogger.com/profile/11069027731383680669noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-50500967384668883302009-03-24T01:55:00.000-07:002009-03-24T01:55:00.000-07:00To be more precise, i have a webapp with jquery, e...To be more precise, i have a webapp with jquery, excanvas and jquery.flot (http://www.moossen.net/en/about/mait/stats.html)<BR/><BR/>it works with excanvas r2 in IE6 & IE7, but not IE8 (with no js error at all). but with excanvas r3 it does not work at all in any IE.<BR/><BR/>here is the jquery.flot code:<BR/>canvas = $('<canvas width="' + canvasWidth + '" height="' + canvasHeight + '"></canvas>').appendTo(target).get(0);<BR/> if ($.browser.msie) {<BR/> // excanvas hack<BR/> canvas = window.G_vmlCanvasManager.initElement(canvas);<BR/>}<BR/>ctx = canvas.getContext("2d");<BR/><BR/>help please!Michael Moossenhttps://www.blogger.com/profile/14784939517692967898noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-86314572873627415702009-03-24T00:41:00.000-07:002009-03-24T00:41:00.000-07:00not working, yet :(i am using the G_vmlCanvasManag...not working, yet :(<BR/><BR/>i am using the G_vmlCanvasManager.initElement method!<BR/><BR/>And the problem occurs exactly when calling it!Michael Moossenhttps://www.blogger.com/profile/14784939517692967898noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-73151002443353147102009-03-24T00:24:00.000-07:002009-03-24T00:24:00.000-07:00This comment has been removed by the author.Michael Moossenhttps://www.blogger.com/profile/14784939517692967898noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-80180566185454091642009-03-23T23:11:00.000-07:002009-03-23T23:11:00.000-07:00I know why you are seeing the issue with el.innerH...I know why you are seeing the issue with el.innerHTML = '' and I added a wiki page with instructions.<BR/><BR/>The reason is that the trick to get IE to recognize canvas tags require that we we do a document/.createElemen('canvas') before the first instance of a canvas tag in the markup.Erik Arvidssonhttps://www.blogger.com/profile/12794753311478261999noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-41975382446606680032009-03-23T22:37:00.000-07:002009-03-23T22:37:00.000-07:00What kind of element are you passing in to initEle...What kind of element are you passing in to initElement? All the test cases work and innerHTML = '' should be fine on all canvas elements.Erik Arvidssonhttps://www.blogger.com/profile/12794753311478261999noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-69296361254969262402009-03-23T12:33:00.000-07:002009-03-23T12:33:00.000-07:00Yeah, same problem here... exception on line 144 "...Yeah, same problem here... exception on line 144 "el.innerHTML" when calling g_vmlCanvasManager.initElement ...rusihttps://www.blogger.com/profile/07379277268795957207noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-81357243434456670432009-03-23T07:35:00.000-07:002009-03-23T07:35:00.000-07:00I am having the same issues. Seems to me it's a D...I am having the same issues. Seems to me it's a DOM not loaded issue? Debugging now.Ryan Leachhttps://www.blogger.com/profile/11069027731383680669noreply@blogger.comtag:blogger.com,1999:blog-7529341288156225989.post-65485911567904116712009-03-23T06:15:00.000-07:002009-03-23T06:15:00.000-07:00but i got troubles :(first i got and 'unknown runt...but i got troubles :(<BR/><BR/>first i got and 'unknown runtime error' on line 144:<BR/>el.innerHtml = '';<BR/><BR/>i thought that may be it could work out if i just comment that line out.<BR/><BR/>but then i got a 'Unexpected call to method or property access.' on line 311:<BR/>surfaceElement.appendChild(el);<BR/><BR/>... and i do not think that it will work out anymore by just commenting that line out :(<BR/><BR/>any ideas?<BR/>thanksMichael Moossenhttps://www.blogger.com/profile/14784939517692967898noreply@blogger.com