Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

canvas element missing

#163

Hi,

i'm trying to set up a simple test system for processing.js sketches. Currently i'm running into this error:

TypeError: Cannot find function getContext in object [object HTMLUnknownElement]

which seems to indicate that the canvas element is not there, right?

F

Reported by Florian Jenett · April 23rd, 2010 @ 04:54 AM

State: resolved
Milestone: none
Assigned to: nickg nickg

Activity

  1. nickg
    nickg
    • State changed from new to open
    • Assigned user set to nickg

    Hi Florian,

    Do a "git pull" -- I just added a canvas stub. All the canvas context functions do nothing, but hopefully your page should not explode.

    Please let me know how this works. I'm sure I missed something.

    enjoy!

    -nickg

    April 25th, 2010 @ 08:04 AM

  2. Florian Jenett
    Florian Jenett

    heya, that is great!

    i'm getting past the problem mentioned above but am now running into:

    SyntaxError: identifier is a reserved word

    at processing.js > p.init > p.executeSketch > eval()
    [around line 6991]

    my code runs fine in any browser supported by processing.js though. since rhino does not give any line-numbers or other hints i'm sort of clueless. any ideas?

    thanks!
    F

    April 25th, 2010 @ 07:43 PM

  3. nickg
    nickg
    • State changed from open to resolved

    I would post this to google groups, as my knowledge of what rhino does/how it works is limited.

    http://groups.google.com/group/envjs

    good luck!
    --nickg

    April 26th, 2010 @ 03:14 AM

  4. Florian Jenett
    Florian Jenett

    ok, just wanted to make sure it's not related to the canvas element you added.

    thanks!

    April 26th, 2010 @ 03:19 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.