Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.internetdienste.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <2139674.s9ONc4Y8a9@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 19 Jul 2013 21:42:58 +0200 User-Agent: KNode/4.10.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <3401c16a-0d93-4560-a767-6c90292a77d5@googlegroups.com> <3854249.9rPbM97Byf@PointedEars.de> <6d54a079-1236-464a-aa4d-60d118f72411@googlegroups.com> <14481436.aRB4Lr778n@PointedEars.de> <26f9608c-9bc9-4b88-bed4-c13d2c63f72a@googlegroups.com> MIME-Version: 1.0 Lines: 30 NNTP-Posting-Date: 19 Jul 2013 21:43:00 CEST NNTP-Posting-Host: 2f4a56a8.newsspool2.arcor-online.net X-Trace: DXC=d_8jk;k6WF;T2Rfi6 […] Thomas 'PointedEars' Lahn: >> jonas.thornvall@gmail.com wrote: >> > var canvas = document.getElementById("myCanvas"); >> >> You need to have a “canvas” element with ID “myCanvas” in the document >> for this to work, like >> >> >> >> But the call to getElementById() must happen *after* the document was >> loaded; at least *after* the element in question was parsed (so that it >> is in the document tree). Safest and cleanest is in a function or method >> that you call onload: […] > > You just can't write the working seven line of coded needed rather you > post some anal nitpicks, face it your code do work. Despite your posting in a hardly readable manner, I have given you a helpful answer. If are unable to put one and one together, and blame your failures on the teacher instead, you are in the wrong place here. FOAD. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.