Category

JavaScript

17 posts

Google Chrome Extension and Loading/Embeding the Flash Files

If you are Google Chrome Extension developer, then you may have used the “chrome-extension://” protocol to refer to the locally stored files under the extension (could be images, JS, html, etc). However, I have been trying to use the “.swf” files in the page, and it had kept failing. For some reason, you can’t use…

Continue reading Google Chrome Extension and Loading/Embeding the Flash Files
JavaScript

JavaScript String Trim Function

JavaScript doesn’t natively support the string trim (removing leading and trailing spaces) function, but this function is quite useful and required from time to time. Fortunately, you can do this as easily as by just single line of code using regular expression and can add support to all the string objects using the JavaScript prototyping.…

Continue reading JavaScript String Trim Function
JavaScript

JavaScript Closure in Loop

JavaScript anonymous functions are really a bliss, and they way the help you write neat, flexible and dynamic code is simply amazing. I always admire them whenever I use them. But they don’t work in loops as neatly as in some other languages where the variables are scoped to the block level (like C#). In…

Continue reading JavaScript Closure in Loop
HTML JavaScript

Dottor-o Web Reference

I found another very interesting reference site on the DOM and JavaScript and it’s Dottoro: http://help.dottoro.com/ljxsqnoi.php For example, just check how much detail is available on just the Range object. The best thing is all the compatibility options of all the major browsers are also discussed. The main idea for this post is to bookmark…

Continue reading Dottor-o Web Reference