This article will explain Javascript Closures and will approach this by first explaining what inner functions are and how variables from their outer functions are accessible by them. It is assumed the reader has a basic knowledge of Javascript and how to write their own javascript functions, as well as how to pass in variables to functions and how local variables work. If not I recommend going through the Javascript tutorial at W3Schools. Starting with the basics, an inner function is a funct... Read Full Story
I have created a google gadget that allows a user to create a collage of photos that animate much like a slide show. The table can be as small as 1x1, which is basically just a clickable slide show, or up to 2x2. Images are loaded into memory from Flickr based on search tags given. Then pics in the table are swapped out based on a timer, and replaced with an image in memory. Images can be clicked and then a separate window is opened that accesses the picture on Flickr. To open a window with t... Read Full Story
This article will explain Javascript Closures and will approach this by first explaining what inner functions are and how variables from their outer functions are accessible by them. It is assumed the reader has a basic knowledge of Javascript and how to write their own javascript functions, as well as how to pass in variables to functions and how local variables work. If not I recommend going through the Javascript tutorial at W3Schools. Starting with the basics, an inner function is a funct... Read Full Story
I have written a javascript text parser. To understand the code the reader will need a basic understanding of object oriented programming using javascript and regular expressions. To view source code click here. Below this posting, on my javascript blog, are some text areas and a button to demonstrate the parser's functionality. Click here to move to the section on my blog that demonstrates the parser. The parser object contains the following functions and helper functions-function ... Read Full Story
Thought I'd share - as a trucker - how I managed to get 2 tickets in one day in Iowa back in early January. It was on highway 63 and if I remember correctly the town was Clearwater. It was getting toward the end of my shift and it was in the early morning, so I was a bit tired and getting a bit bored. I was certainly not sleepy though. This being the case I failed to notice a sign saying that the speed limit dropped to 50 mph and no doubt I should have been paying attention to this. A pol... Read Full Story
Just read up on Author and Bishop Thomas Weeks pleading guilty for the assault on his wife at religionnewsblog.com. For a little more on this please see my Spirituality and Religion blog. Read Full Story