Archive

Posts Tagged ‘Javascript’

Javascript dictionary & getIds

October 11th, 2009 fbis No comments

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.

Read more...
Categories: JQuery, Javascript Tags: , ,

Check if an image exits.

January 26th, 2009 fbis Comments off

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();
 
 <a href="http://www.fruitbatscode.com/javascript/check-if-an-image-exits#more-4" class="more-link">Read more...</a>
Categories: Javascript Tags: