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...
No comments yet, be the first one to post comment.