Ask a Question related to Coldfusion Database Access, Design and Development.
-
AntGreene #1
Passing Parameter from FlashRemoting to ColdFusion
I am building my first dynamic site using FlashRemoting and ColdFusion and have
the problem below:
Flash ActionScript:
//customerProxy is the instance name of RemotingConnector component.
customerProxy.gatewayUrl="http://localhost:8500/flashservices/gateway";
customerProxy.serviceName="mysite.dbs.customer";
customerProxy.methodName="getCustomer";
customerProxy.params = "info@info.com"; //this is to search a customer who has
email address [email]info@info.com[/email].
customerProxy.trigger();
var oRsCustomerListener:Object = new Object();
oRsCustomerListener.result = function() {
trace(customerProxy.results.length);
}
customerProxy.addEventListener("result", oRsCustomerListener);
ColdFusion Component (customer.cfc):
<cfcomponent>
<cffunction name="getCustomer" access="remote" returntype="query">
<cfargument name="theEmail" required="true" type="string">
<cfquery name="qGetCustomer" datasource="myDataSource">
SELECT *
FROM customer
WHERE email = #Arguments.theEmail#
</cfquery>
<cfreturn qGetCustomer>
</cffunction>
Did I miss something?
AntGreene Guest
-
Passing a parameter in SWF
In the sample application that comes with flash mx, when I click on the simpleconnect and look at parameters it has an Application Directory and if... -
Passing in a parameter
Hello All, I've declared my usercontrol in the normal way (page directive) and to load it I'm doing: <webapp:menu runat="server" />. However, is... -
Passing XML in a string parameter
We have a parameter to a webmethod that is defined as a string. We expect to pass XML in this string. What we've found out is that the .Net web... -
parameter passing from asp to php
Hi all, I've got a script using com objects that will work in asp but not work with php. The asp script creates an object that does something... -
parameter passing from osql
Hi, I want to write a batch file which essentially calls the osql utility (osql -i xxx.sql....) to run a SQL script. How the script can be written...



Reply With Quote

