Posts Tagged ‘JavaScript’

Here are some useful cheat sheets for web developers

This thread was helpful for me to create a button that opens a new window. However, I had to move the script into onclick part of the button, instead of creating a separate jsFunction.

jslint plusplus

Posted: October 1, 2009 in Technology
Tags: , ,

Today, my coworker asked why he can’t use ++ operators. I responded that jslint’s plusplus configuration ban it. He certainly was annoyed by such change in the configuration. A quick look into the reasoning behind the ban reveals the following statement from Douglas Crockford’s JSLint – JavaScript: The Good Parts: The ++ (increment) and — [...]

For the last couple days I ran into JavaScript errors with toolbars for Ext JS. One of the issues is clearly documented here. I just added hideMode:’offsets’ to the toolbar definition and the error went away. The other one, I had to add enableOverflow: false option to the toolbar to avoid hitting Object required error [...]

I came across this script and it worked for me. This is a good time saver!

I worked with JSLint today to clean up my local code. While cleaning, I encountered a parameter name that had underscore in its name. JSLint didn’t like this and complained. Since this parameter name was used to communicate with the server and could not be changed, I needed to set an exception in the JavaScript [...]

JavaScript trick

Posted: August 6, 2009 in Technology
Tags: , ,

This might be useful trick to upload and display an image.

mmusson’s code post in this thread works well for me.

Buggy FireBug

Posted: June 19, 2009 in Life in general
Tags: , ,

I have a page with Javascript loaded from different directories. For one reason, the Javascripts source loaded from one of the directories did not display. This means I could not use the debugger to insert break points directly. The Firbug version was 1.3.3. Initially, I was able to get the source code to show after [...]

createDelegate in ExtJS

Posted: May 26, 2009 in Technology
Tags: ,

createDelegate is an interesting way to pass a function object with a scope object. This is very useful for using callback functions. For more information, see this screencast.