Posts Tagged: Javascript

Javascript dictionary & getIds

Coming from a .net background I must admit to missing many of the features that the framework provides like Hastables, Dictionaries and Lists. I've just come up with a really simple dictionary class that I use to hold results from my id parsing routine.

Check if an image exits.

Javascript can be used to check if an image exist. An AJAX call cannot be used, because cross-site calls are not supported. However, the javascript Image object can be used for this purpose. var img = new Image();