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


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

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