Taswar Bhatti
The synonyms of software simplicity
Category: javascript
jquery

I recently had to do work on localeCompare in JavaScript and though I would write a plugin in JQuery and share it. Javascript Locale Compare JavaScript provides a localeCompare function for comparing two strings in the current locale. The locale is based on the language settings of the browser. To explain locale compare lets look […]

node.js

Here is a quick little tutorial of using Twitter Bootstrap with Node.js express in Visual Studio. First we will create a ExpressBootstrap solution, select New Project and select JavaScript -> Blank Express Application. I will name my solution ExpressBootstrap, in my app.js I have also add the app.locals.appname = ‘Express Bootstrap’ so that I can […]

node.js

Node Tools for Visual Studio is currently in Alpha 1.0 and its free and opensource, in this post I will show you how to install Node and Node Tools for Visual Studio (NTVS). First lets install Node.js Download Node from http://nodejs.org/ The currently version is node-v0.10.26-x64 Step one lets run the msi that we just […]

javascript patterns

Over the holidays I read Javascript Patterns by Stoyan Stefanov. Its a pretty light book consisting only of 240 pages, which is light in computer reading, where majority of the books are like yellow pages phone book over 1000 pages. It was quite enjoyable to have a concise book written by Stefanov, another highly recommended […]

Javascript

So was going through some legacy code to fix some security issues. One of them was there were links that were passing the data on url request. e.g NewFile.aspx?uid=1234 Rather than storing data in a session sometimes developers use shortcuts to do this, could be due to the pressure or time limit we have in […]

jquery

So here is an interesting jquery plugin called jqprint it allows one to specify any element and sent it to print. Assuming you have an element with id printButton and a content area called divToPrint

This will pop up the print functionality in your browser and send it with the default media=”print” css or […]

jquery

So for some reason IE just loves to cache things for you when you call an ajax method, thus my JQuery get ajax call not working in IE. Something like

This will work every time in firefox but IE will just call the cache version, thus whatever you have changed in the post version […]

jquery

So was having issues as in why does my checkbox doesn’t work in IE when I do

And found out that jquery does not bind live “change” events, I was told that it works in 1.4.2 but for some reason I still was not able to get it working. The solution that I found […]

UA-4524639-2