javascript - HTML5 "Canvas is null" -


can me? i'm putting infographic within sliding carousel , i'm getting error "canvas null". think may have few bits of code in wrong place, i'm having trouble working out bits. think it's causing svg that's supposed appear in background of each sliding <li> not displayed.

can work out what's causing these problems? page here: http://weaver-wp.weavertest.com/radiation-infographic/

thanks, david

you looping 1 32, there 31 canvas elements on page. in 32nd iteration, document.getelementbyid('mycanvas_32') returning null, hence error.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -