Welcome to the homepage of Jon Robson, one of those web developer hippie types. I
currently live in London, work for Osmosoft and make things like the new ILGA website and Vismo. Here is the
place to find the majority of my contributions to the big thing we call the web. This is a blog and an RSS aggregator of all my feeds. I don't like IE6 but I like coffee. I believe Programming is an art.
Hope you enjoy your stay.
Catch up on what I've been blogging about in the BlogArchive.
loading content ...
Error Message
Macro 'toolbar' not defined, or not allowed to call [restricted_mode=False]
I've been doing some work with the canvas object and wanted to briefly share my experience. Basically I have been drawing polygons and trying to make each of those polygons clickable something which canvas does not support out of the box.
Do this I accepted I would need a way of identifying a polygon. To do this I just wrapped the fundamental data used to draw the polygon - the coordinates - into a javascript object which also carried an id. The id would also represent the order in which it was drawn - ie. the first polygon to be drawn has id 0, the 5th has id 4 and so on... eg.. {coords:[x1,y1,....], id:0} - these will also need to be stored in an object memory (more on this later) so they are all accessible and referencable.
The first method I tried then to make the canvas clickable was using the ancient
Thanks for reading this far. Did I bore you or interest you? Let me get better at doing the latter and focus more on working on the good stuff...
Error Message
Macro 'ratemytiddler' not defined, or not allowed to call [restricted_mode=False]
Comments
Error Message
Macro 'tiddlyWebComments' not defined, or not allowed to call [restricted_mode=False]