Posts » Tagged ‘Javascript’

Callback Functions: Which Instance is Calling? Friday, October 17th, 2008 | Comments Off

In support of multiple cropping widgets on the same page, I’ve had a couple requests for Jcrop to return an identifier of the image being cropped, when callback functions are called. On this point, I’d like to suggest a small but flexible workaround. I think it may illustrate an interesting pattern of Javascript at the same time.

Read Full Article...

Rotating a Polygon: Drawing a Directional Arrow Monday, October 6th, 2008 | 1 Comment »

I needed to draw an arrowhead to show the direction of lines drawn on the canvas. When I searched for this I didn’t find any complete solutions, so I wanted to share mine. Includes useful canvas routines to translate and rotate a data structure representing the polygon coordinates.

Read Full Article...

Playing with the Canvas Object Thursday, October 2nd, 2008 | Comments Off

Back after a really busy week with a short article on drawing with the Javascript canvas object. This article describes my first foray into drawing in the browser, with some simple example code. What I’ve learned: canvas drawing presents some interesting interface possibilities that bear more investigation…

Read Full Article...

Jcrop v.0.9.0 – fresh jQuery image crop plugin Tuesday, September 9th, 2008 | 3 Comments »

I’ve just released my first jQuery plugin. Announcing Jcrop – the image cropping plugin for jQuery. Jcrop allows developers to easily implement a cross-platform image crop tool into web applications. Features a graphical interface that faithfully reproduces the look and feel of familiar desktop applications.

Read Full Article...