Google Chrome: Cannot read property ‘_commandLineAPI’ of undefined error
I was having problems debugging my javascript code in Google Chrome browser the other day. I was not able to use the Chrome Developer Tools' Console while stepping through a particular method (let's say "myProblematicMethod") in the javascript code, and was always...
Drupal – true “Save Draft” functionality for node forms by overriding node form validation
Let me clarify staright away that the code below has been tested successfully against Drupal 6 only. But I believe it should work with Drupal 7 also with minor changes (if any required). Okay now, let's come to the point."Save as Draft" as you can imagine is a pretty...
Drupal – node form validation methods in hook_form_alter should be set using #after_build to always execute on form submission
Last week, I was trying to add a custom validation method for node form of a particular content type in Drupal. My initial approach was as naive as specifying my custom validation method in hook_form_alter, something like the following: {syntaxhighlighter brush:...
.Net – Regex pattern for lazy balanced group matching
A couple of days ago, I needed to find all calls to a specific method in a large number of javascript files. The exact method call looked something like following:Rahul.t('String to be translated.');If you have been following my blog posts, or have otherwise read my...
Html – Using Buttons for selecting files to be uploaded
Well, you know the good old <input type="file" /> widget in html, the one used for selecting files to be uploaded on a web page, right.The problem with this widget is its limited support for styling and scripting compared to other html tags (probably due to...
ExtJs – Adding tools dynamically to ExtJs Panels
Second consecutive blog post relating to adding something dynamically to an already rendered Html component, while the previous one was for adding buttons dynamically to jQuery UI dialogs here, this one is for adding tools dynamically to ExtJs Panels.As you might be...
jQueryUI – Adding-removing buttons dynamically from a jQueryUI dialog
It was a rather interesting situation. I needed to add/remove buttons dynamically from a jQueryUI dialog that had already been rendered. Based on user interaction, I either needed to add new buttons or remove existing ones.I checked the jQueryUI docs and there was...
ExtJs – Upgrading from 3.2.1 to 3.3.0
This is more of a personal blog post I am creating for my own referecne. We have migrated one of our apps from July/August version of Ext.Net (based on ExtJs 3.2.1) to Feb 19, 2011 (Revision 3469) version of Ext.Net (based on ExtJs 3.3.0).There have been some breaking...

Internet Explorer’s Developer Tools mysteriously refuse to show up
Internet Explorer (IE) 8's Developer Tools seem to have a strange issue. Every once in a while, it simply refuses to show up on my screen. No matter how many times I click the Developer Tools button in IE's menu, or press F12, the tools simply wont show up on the...
ASP.NET – Converting a Physical Path to a app relative Virtual Path
I had earlier written a quick and dirty method to convert a Physical path to a virtual path (aka a url) that can be used on the client after passing through ASP.NET's ResolveUrl method. Without much talking, here's the method: {syntaxhighlighter brush:...
Recent Comments