Entries Tagged as 'ColdFusion'

Todays' Ad

Add file into zip from URL in Coldfusion

ColdFusion 1 Comment »

For one of our client had requirement to download photos in zip format and it was working file with cfzip tag. Although I have some performance issue with cfzip tag as cfzip doesn’t allow you to zip with list of files. We can create zip for whole folder, add single file but can’t have ability to add list of files at single instance. In my case I have around 50 images which I need to add into zip file and I have only one way to do so is adding one by one file. I was looking for alternative solution for creating zip which gives faster performance with adding file list.

Read more...

mssql table field of type ntext coming as empty string coldfusion 7

ColdFusion No Comments »

I am sorry for posting issue of coldfusion 7 in era of ColdFusion 9 :). Today I face really strange issue about value of ntext field not populating in cfquery. Application was running on ColdFusion 7 (eventhough I didn't face same issue on local server running with ColdFusion 7).Tried same query in Sql Server Management and seems data was coming correctly mean query was OK but when I dump CFQUERY it showing empty string for ntext fields. Now this is really hair pulling situation and after 2 hours of try and error method I found simple solution, that is...

Read more...

ColdFusion wrapper for jQuery autocomplete.

ColdFusion , customtag 2 Comments »

For one of my project I required autocomplete box. I know coldfusion has its own autocomplete but has lots of limitation. I wanted autocomplete to work like select box of html, display lable of product in list but in backend it will return ID for that product and as usual I just stop at jQuery-ui Autocomplete (I just love jquery) which allow good customization.
This coldfusion wrapper allow you to use jqury autocomplete with coldfusion query variables or loading data remotely.

Example:

<cf_autocomplete
textFieldName="productName" 
textFieldValue="" textFieldBind="PRODUCTNAME"
idFieldName="productId"
 idFieldBind = "PRODUCTID"
datasource="/cfc/products.cfc?method=getActiveProduct&returnFormat=JSON"
fieldList="PRODUCTID,PRODUCTNAME,PRICE"
queryParam="product"
 
displayTemplate="<div><img 
src=""/images/{PRODUCTID}.gif"">{PRODUCTNAME}&nbsp;: {PRICE}" 
minlength=2
 />

Read more...

addcfcode: Mango Plugin published

ColdFusion , mango plugin 6 Comments »

Just before some days when I was writing my post regaring cfgrid with header and footer where I want to show output on my post. For this I need to create new demo page and give link to that or I can add iframe which load my demo page and just got idea why not add coldfusion tag on post and post display output that code :).
And this is what addcfcode plugin will do. You can add your own coldfusion code in post wrap with [addcfcode ][/addcfcode ].

Read more...

Showing record information in CFGRID footer in ColdFusion 9

ColdFusion , ColdFusion 9 5 Comments »

 

I was working on migration from ColdFusion 8 to ColdFusion 9 for one my client. As I have raised in my other post that Coldfusion 9 is using Ext 3.0 which required some javascript changes if you have used ExtJs function to extend your functionality. 

I need to show record information (ex. Showing 1 to 10 out of 15) in CFGRID footer but as usual I require to make changes as per ExtJs version 3.0.

 

Read more...

Powered by Mango Blog. Design and Icons by N.Design Studio | Menu Apycom
RSS Feeds