Archive for the ‘coding’ Category

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 [...]

Viewing Flash Player debug log flashlog.txt

Using the trace() function output is written to the file flashlog.txt if the debug version of Flash Player is used. Verify that you are running the debug version at this page, if not you may download it here. Then the Flash Player must be configured to enable logging using the mm.cfg file. It’s location is [...]

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?

Detect if ExCanvas is loaded

When using ExplorerCanvas (excanvas) to emulate the Canvas object in Internet Explorer it might be a good idea to check that the excanvas lib really is loaded before trying to create a context object. If not, an informative error message may be displayed instead of some cryptic “object doesn’t support this property”. Here is a [...]