Posted on Oct 31, 2008

Visual Studio 2008 Service Pack 1 Javascript Formatting Drives Me Nuts

With all of the goodies included with Service Pack 1 for Visual Studio 2008, the one thing that Microsoft did not do right is Javascript formatting.  First of all, it’s really slow.  Second of all, it doesn’t seem to be consistent with it’s indenting.

For me, I’d like to do my own formatting.  So, to turn off the Javascript formatting in Visual Studio 2008 go to Tools – Options – Text Editor – JScript – Formatting.  And uncheck all of the checkboxes in the Automatic Formatting group.

Posted on Oct 10, 2008

Yahoo DataTable editorSaveEvent Change from YUI 2.5.2 to 2.6.0

In Yahoo YUI 2.5.2 the Yahoo DataTable editorSave Event’sData Cell Editor has changed.  To get to the data record for the editor it is no-longer oArgs.editor.record, but rather oArgs.editor.getRecord();

DataTable.subscribe("editorSaveEvent", EditorChanged);

function EditorChanged(oArgs)
{
    var record = oArgs.editor.getRecord();
}