Blog

March 30, 2010
Check All Checkboxes with JQuery Plugins

Hello Friends,

A jQuery plugin is simply a way to put your code into a package. It makes it easier to maintain and use in different projects.

I have created sample jquery plugin for checking all checkboxes at one click. Also you can select odd or even row using this plugin. You need to give class of child checkboxes. Remember, Class name must be same for all ...

Read More
By Bharat Patel
Comments(0)
Tags: jQuery
March 17, 2010
cffinally, finally

Hello Friends,

ColdFusion 9 introduced cffinally tag. Cffinally or finally blocks are used within cftry or completion of try block. It is generally used for cleanup i.e. close database connections, close some objects or excecute code whether it is exception or not ...

Read More
By Bharat Patel
Comments(0)
Tags: ColdFusion9
March 11, 2010
wrap text in cfgrid - cf9

Hi ,

We have been updated to cf9 from cf8 and we noticed that text in cfgrid column in not wrapped. Its just because of changes made in version 3 of ext. Turns out the fix is pretty simple. Look at the css code below which has to be applied on a page where you require to wrap text in cfgrid ...

Read More
Comments(1)
Tags: ColdFusion9, ColdFusion
March 10, 2010
Date Difference Excluding Weekend.

Hello,

Recently I need to find the date difference between two dates excluding weekends. So I have made sql server scalar function to get date difference excluding weekends. You need to pass only two arguments as start date and end date. Refer below example. I hope it may be helpful ...

Read More
By Bharat Patel
Comments(2)
Tags: SqlServer
March 9, 2010
Finding real IP address in coldfusion

Hello,

I was facing one problem before few days as i was storing ip addresses in my database.
when i looked into database i amazed that there were some entries of ip addresses which were not true.

If anyone is connected to internet through Proxy server then using 'CGI.REMOTE_ADDR' just returns the IP address of proxy server not of the user's machine.

What we need to do is to compare 'CGI.HTTP_X_Forwarded_For' variable against 'CGI.REMOTE_ADDR' ...

Read More
Comments(0)
Tags: IPAddress, ColdFusion