Posts Tagged ‘javascript’

Instance and class based plugins in YUI 3

Using plugins in YUI 3 is a way to add functionality to existing objects in YUI (very much like you would use prototype to augment a function to a normal JavaScript object). Objects in YUI all derive from Y.Base. Note that this post is about YUI 3 and not YUI 2. However, the current YUI [...]

Progressive enhancements with JavaScript and CSS

It is clear that IE6 is not going away just yet, at least not for mainstream websites targeting a large (and non-tech) audience. Quite some time and effort is put into making design and functionality work in IE6 which otherwise works perfectly well in more modern browsers. This is inefficient, but just because IE6 support [...]

Invalid JavaScript code error warning in NetBeans

Finally I managed to reproduce something that have been annoying me for several months while using NetBeans as my primary JavaScript editor: Filed as issue #159060. Update: Fixed in trunk and available in 6.7 M2.

Virtual Earth point in bounding box test

I’m currently working with the Microsoft Virtual Earth SDK and wanted to test if a point is inside a box as where coordinates are specified using latitude and longitude. It appears there are no built in function the API that does this, so this is what I came up with. Please note the special case [...]

JavaScript Raster Bar Effect

I had some free time and wanted to bring back some early Amiga memories using JavaScript. Using canvas this is what I ended up with: Click for demo. I’m pleased the way the lightning and individual rotation of the bars themselves turned out to be. What do you think?