Jason Rowe

Be curious! Choose your own adventure.

Category: JavaScript

  • Determine if two rectangles overlap each other in JavaScript

    Stack Overflow has a good post on determining if two rectangles are overlapping.  I used the discussed algorithm to check for an overlap and then move one away.  I’m only moving up or down depending on which rectangle is higher or lower and if it will fit in a specified areas min or max.

  • JS Memory Leak Tools & Tips

    Javascript Closure If you refresh the browser or go to another page and the memory doesn’t go down you probably have a closure. I just ran into a tricky situation where my closure was being caused during the successful call back of a JQuery Ajax call. The function that was leaking looked like this: The […]

  • JavaScript: Create Advanced Web Applications With Object-Oriented Techniques

    I just started working with OOP in javascript and found this article very informative. The section on prototypes was very helpful as I have been digging around in the YUI library lately and found that area confusing. JavaScript: Create Advanced Web Applications With Object-Oriented Techniques The article has lots of examples if you click on […]