Web Design Resources & Tutorials to help you design the best website!

Archive for the ‘ColdFusion’ Category


Creating Customs Tags in Coldfusion; An example

Oct 20, 2008 Author: Sherif | Filed under: ColdFusion

ColdFusion Image
In this example I will show you how to create a Custom tag in ColdFusion. The idea of a Custom tag is to allow you to package chunks of code into reusable modules that you can then reuse through out your project. They are similar to UDF (User Defined Functions) with the exception that Custom tags are self-contained, have a specific purpose and goal-oriented. In addition, one does not have to understand how exactly the Custom Tag works, all you do is plug in the variables and watch the tag do it’s work.
(more…)

Passing Paramaters using HTTPService in Flex to ColdFusion

Sep 21, 2008 Author: Sherif | Filed under: ColdFusion, Flex

http Passing Paramaters using HTTPService in Flex to ColdFusion
This Example involves passing parameters from Flex to ColdFusion and then having ColdFusion Process what we need and sending it back to flex via flashvars. The HTTPService class is much slower than say using the RemoteObject class or even the WebService class but If you are not doing any heavy lifting like this example then you should not be seeing any performance difference. Instead of a CFC file we use a CFM file and the parameters being passed are actually in the URL of the CFM file and not to a function. For Example when You Enter your name it will be like http://mySite.com/myFile.cfm?yourName=ColdFusion. Click Here for the Example and the Source Code is Enabled.

RemoteObject Class in Flex and ColdFusion Example

Sep 21, 2008 Author: Sherif | Filed under: ColdFusion, Flex

remoteflex RemoteObject Class in Flex and ColdFusion Example
This Example uses the RemoteObject Class/MXML Tag in Flex to send some parameters to a ColdFusion CFC file, the ColdFusion CFC file then processes the parameters that Flex sent it then sends the results back which we display in Flex.  The Example is simple and straightforward and you can use this as a stepping stone to create bigger applications. You can, for example query up a Database from ColdFusion then have flex send some parameters which ColdFusion can take and determine for example to delete,insert,filter, something from the Database.  A couple of things you need to take note of. 1) You must set the destination=”ColdFusion” or you will get this error:

[RPC Fault faultString="[MessagingError message='The MessageAgent's destination must be set to send messages.']” faultCode=”InvokeFailed” faultDetail=”Couldn’t establish a connection to ””]

Also When you drill down to the CFC file make sure that you are Starting from where the root of your site is and to also include the src Folder in flex. So For Example myExample.src.ThisIsTheCFCFile, DO NOT put the .cfc Extension. Here is the Example, just type in Your First Name and Last Name and click Submit. Click Here for the Example and Right Click For the Source

For me Jrun takes almost 500K memory when it is fully loaded, which is a waste of memory since I am not always programming ColdFusion so I decided to write 2 Batch Files to Start and Stop all ColdFusion 8 Services. Here is the Code

@echo off
echo Starting ColdFusion 8
echo ======================================================
net start "ColdFusion 8 Application Server"
net start "ColdFusion 8 ODBC Agent"
net start "ColdFusion 8 ODBC Server"
net start "ColdFusion 8 Search Server"
echo ======================================================
echo ColdFusion 8 Started


@echo off
echo Stopping ColdFusion 8
echo ======================================================
net stop "ColdFusion 8 Application Server"
net stop "ColdFusion 8 ODBC Agent"
net stop "ColdFusion 8 ODBC Server"
net stop "ColdFusion 8 Search Server"
echo ======================================================
echo ColdFusion 8 Stopped

The Files If you do not want to create them Click Here

Photoshop Brushes

PhatBrush the Mecca of Photoshop Brushes

FK’D LIFE Blog


Blog Sections


Our Friend’s


Categories


The Design Blog?

SherifAbdou.com is a web design blog that we created with goal of provoking inspiration to other designers & webmasters all over the internet

~ READ MORE ~


Recent Comments