Tag

JavaScript

15 posts

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
HTML & CSS

Round Corners using CSS

I have known for a long time that Mozilla/FireFox has a custom CSS attribute to apply the round corners on the HTML element using the “-moz-border-radius” property. But as apparent from the name prefix, it works only on Mozill/FireFox browsers. I found today that Chorme also support the round corners, but unfortunately under a different…

Continue reading Round Corners using CSS
JavaScript

JavaScript Beautifier

Everyone now and then a web developer stumble upon a JavaScript which is compressed by some utilities mainly to cut down the load time. I found it really tough, if not impossible, to read and understand such JavaScript. Fortunately, when tired of looking at one such compressed code (of a Google Chrome extension), I as…

Continue reading JavaScript Beautifier