I have been getting warnings for my two of the Basecampe Extensions for the manifest version 1, and need to upgrade those to version 2. However, when working on this upgrade, I found that upgrade was not as simple, as I thought at first. The biggest problem for me was the new Content Security Policy […]
Posts Tagged ‘JavaScript’
HTML Nested Elements & OnMouseOut Event
If you are trying to track the mouse-out event, for example to hide the sub menu when user leave that area, then there are good chances there are good chances that you may stuck into a problem, where the parent element mouse-out event fires, when you move the cursor to the child. Here is a […]
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. […]
HTML & JavaScript Compatibility Hell for Programmers
If you are HTML Designer or JavaScript programmer, then you may already know the rule that it almost 50% of the development time to make what works in browser, and another 50% of the time is spent to run it smoothly in all the other popular browsers (some time it takes even more). Recently, I […]
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 […]