Here are the posts tagged with javascript:

Clipping or adding a mask to a shape in Kinetic JS

posted by Herman on Feb. 24, 2013, comments

A short intro on how to clip object in KineticJS, the JavaScript animation library. You'll see it in action in my soon-to-be-released Chinese-learning game PinyinMaster!

One feature that is curiously lacking from the KineticJS JavaScript animation library is the ability to clip or mask shapes. For this reason, ...... Read more

 

Google adds fade-effect on Google Maps

posted by Herman on May 17, 2011, comments
Somewhere in the last few days, Google rolled out a new feature on Google Maps that creates a graceful fade effect between zoom levels on Google Maps. The alteration, though small, creates a dramatic improvement in the usability of Google Maps. If you want to check it out, hop over ...... Read more
 

The difference between jQuery bind() and live(), and where to use which

posted by Herman on March 28, 2011, comments
One of the things that makes jQuery so nice is its bind() function. This function is the primary method to attach events to your document. Any event (such as click, mouseover, mouseout, resize, or even your own custom events), can be bound to any HTML elements using this method. Then, ...... Read more
 

APE vs Orbited - The Comet wars

posted by Herman on March 23, 2011, comments
I've spent some time the last couple of days getting to grips with APE - the Ajax Push Engine, an open-source library for Comet. My goal is to have a Django application that is augmented with Comet push capabilities. APE After about a day of setup, I got a basic ...... Read more
 

Using server-side javascript with APE (Ajax Push Engine)

posted by Herman on March 22, 2011, comments
One of my main complaints with APE is that the documentation is scarce and badly written. It took quite a while to figure out how to add my own serverside javascript files in APE. Note that I'm running Ubuntu 10.10, and I installed Ape through the debian package. The path ...... Read more
 

How to smoothly zoom in on an object in Google Maps V3

posted by Herman on Jan. 20, 2011, comments
When wanting to zoom in on a specific object in Google Maps (e.g. on double-click), the API provides no good functionality to zoom in onto the object smoothly. Here is a short snippet on how I achieved the effect. As always, any comments, suggestions and alterations are welcome! // example ...... Read more
 

How to test whether a javascript variable exists

posted by Herman on Jan. 19, 2011, comments
Now and again, especially when working with different files and dependencies in Javascript, it's useful to be able to check whether a variable is defined without risk of getting a 'x is not defined' error. There is a neat trick to do it, which makes use of the javascript window ...... Read more