Currently Browsing: javascript

Javascript use of “this” in OOP

I’ve been using javascript more seriously for the past 2 or 3 years, and today i decided to write on one of the most common pitfalls when trying to OOP in javascript, scope… using this can be really tricky, lets consider the following example once you have run this ill explain it a little bit further: the solution here is to pass reference to the parent object on the calling...
read more


is a simple javascript “object” or “class” that can be used to get the center position of your screen, it was originally created to help in displaying modal windows and making sure they are always on the middle buycbdproducts the page. Source can be found here on github screenutil.js...
read more

Calendar App

I think this dates a year from now, i was surfing the web on work hours, these where the days of the Facebook BOOM!  so i had to keep up to date with my friends right? well i was really not getting much productivity out of my time inside Facebook looking at friends from high-school, when i scrolled down to the bottom of the page and there it was… a Shiny looking JOBS link, i still remember not wanting to click it, then my brain rendered a pixel clear image of me, from a 3rd person view, i was on my desk watching pictures of friends on facebook during work hours, you know that cant be...
read more