-3
votes
1answer
34 views

accessing value [closed]

how do I access "url" using a javascript syntax? "photos":[{"alt_sizes":[{"url": "img.png"}]}]; I tried accessing with dot notation and literal notation, as seen: p.photos[1].alt_sizes[4].url; ...
2
votes
1answer
210 views

Object detection in bitmap JavaScript canvas

I want to detect clicks on canvas elements which are drawn using paths. So far I have stored element paths in a JavaScript data structure and then check the coordinates of hits which match the ...