#163 ✓resolved
Florian Jenett

canvas element missing

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

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

Comments and changes to this ticket

  • nickg

    nickg April 25th, 2010 @ 08:04 AM

    • 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

  • Florian Jenett

    Florian Jenett April 25th, 2010 @ 07:43 PM

    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

  • nickg

    nickg April 26th, 2010 @ 03:14 AM

    • 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

  • Florian Jenett

    Florian Jenett April 26th, 2010 @ 03:19 AM

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

    thanks!

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket

Pages