4
Shouts

Atanas Hristov: TDD with YUI 3 - find image size with Java Script - blog about programming.

published 467 days, 6 hours, 2 minutes ago posted by atanashristovatanashristov 468 days, 7 hours, 23 minutes ago
Friday, February 04, 2011 8:45:57 PM GMT Thursday, February 03, 2011 7:24:46 PM GMT

Finding size of image using java script involves asynchronous techniques and callback functions. I'm showing how the in-browser YUI 3 test framework can be used for TDD. They are other options for in-browser test frameworks like QUnit and JsUnit, the techniques here should be equally usable.

I came across the need to find the size of image given by URL and using java script. The task was about scaling the width and the height of html elements proportionally for the needs of the UI and accordingly t...

category: Ajax | clicked: 0 | | source: atanashristov.blogspot.com | show counter code
tags: javascript TDD YUI

No comments yet, be the first one to post comment.

To post your comment please login or signup