Blog

December 31, 2009
CFWindow with local content, remote content and javascript

Hello Friends,

Coldfusion 8 has introduced cfwindow tag. It is used to create pop up window in browser without creating any separate browser window instance. cfwindow can be used in different ways ...

Read More
By Bharat Patel
Comments(0)
Tags: ColdFusion
December 31, 2009
Change Title of CFWindow after creating

Hello Friends,

CFWindow has attribute for giving title to window. Once it is created, we can use it multiple time for different purposes with same title otherwise we need to create it again if we want to change title. Using setTitle function there is no need to create again. We can just change window title name runtime. Have a look at code below ...

Read More
By Bharat Patel
Comments(0)
Tags: ColdFusion
December 31, 2009
Minimize or maximize CFWindow

Hello Friends,

Generally, In pop-up window has a minimize or maximize button but coldfusion cfwindow's has not it. We need to add after creating cfwindow. How can we done it? Have a look below code ...

Read More
By Bharat Patel
Comments(0)
Tags: ColdFusion
December 30, 2009
Loop over a file in coldfusion.

Here is a little code of looping over a file in coldfusion using CFLOOP . Lets have a look. Loop over a file - lines.

 
 <cfloop file="YourFilePath" index="line"> 
	Your code goes on here... 
	</cfloop> 
 
Loop over a file - characters. You can specify number of characters to loop over. [code:cf] <cfloop file="YourFilePath" index="chars" characters="6"> Your code goes on here.. ...

Read More
Comments(0)
Tags: ColdFusion
December 30, 2009
CFLOOP[Index, Collection, List, Query] in CFSCRIPT

Hello Friends,

CFScript is a language in language. It is scripting language. We can write a code similar to JavaScript. It runs on the ColdFusion server. it does not run on the client system. We can use all coldfusion function and variables that are available in script's scope.

We can not use cfloop [Index,List,Collection,query] inside cfscript. Today, I have done how to use loop [Index,List,Collection,Query] in cfscript. I hope it may be helpful ...

Read More
By Bharat Patel
Comments(2)
Tags: ColdFusion
December 29, 2009
CFDUMP enhancements.

Hi Friends, Coldfusion has a beauty and that is CFDUMP . But very few of CFers know about enhancements made in CFDUMP that provides control over what to show and what not to in a dump result. You can indicate columns of query or keys of structure to show. It has show/hide attribute to do so. [code:cf] <cfdump var="#myquery#" show="col1,col2"> <cfdump var="#myquery#" hide="col1,col2"> <cfdump var="#mystructure#" ...

Read More
Comments(1)
Tags: ColdFusion
December 28, 2009
Html and Javascript in CFSCRIPT tag.

Hello Friends,

In coldfusion programming we need to use javascript any time. We can easily do this. We can not write directly javascript in CFSCRIPT tag. There is one way to write javascript in CFSCRIPT tag. Look below code. I hope you may find it interesting ...

Read More
By Bharat Patel
Comments(1)
Tags: ColdFusion
December 26, 2009
Check All Checkboxes with JQuery

Hello Friends,

Very often we need to check or uncheck check boxes at single click using js. If we are using javascript then we have to loop over an array to do so but by below example its been more easy and simple to use it.

Now Using jQuery we can easily do it and thats why i love it. we need only few lines of code for check or uncheck check boxes ...

Read More
By Bharat Patel
Comments(0)
Tags: jQuery
December 25, 2009
jQuery Google Api

Hello Friends,

Developer guidance,

The online Ajax Api libraries by google most popular open source javascript libraries. If you want to use jQuery using google api then you have to write only below code in your web page ...

Read More
By Bharat Patel
Comments(0)
Tags: jQuery
December 25, 2009
HorizontalList control using flex

Hi, I have created a sample Flex application that uses HorizontalList component. Now when I use dynamic dataprovider that is if data to display is dynamic the HorizontalList component is working. My code for the sample app is as under ...

Read More
Comments(0)
Tags: Flex