Ok here is a tough one :-)
I have a flash form that is making a call to a cfc through flash remoting.
The problem I am having is when I push my submit button with the onclick
action the function is called and my cursor goes to busy mode but it never
hits the onResult portion of the responseHandler. I know it is something
simple I'm missing. Any help would be greatly appreciated.
This is the cfc component:
<cffunction name="getUpdate" output="false" description="Update query"
access="remote" returntype="struct">
<cfset var results = structnew() />
*Note I took out the arguments because I thought they were causing the
problem.
<cfreturn results />
</cffunction>
This is my acionscript: ( the name of my form is partnersiteform )
<cfformitem type="script">
public function formOnLoad():Void {
partnersiteform.myGlobalObjects = {};
setUpRemoting();
}
public function setUpRemoting():Void{
<cfoutput>
//create connection
var connection:mx.remoting.Connection =
mx.remoting.NetServices.createGatewayConnection("http://#cgi.HTTP_HOST#/flas
hservices/gateway/");
//declare service
var myService:mx.remoting.NetServiceProxy;
</cfoutput>
var responseHandler = {};
responseHandler.onResult = function
(results:Object):Void {
mx.managers.CursorManager.removeBusyCursor();
alert("Here");
}
responseHandler.onStatus = function
(stat:Object):Void {
alert("Error: " + stat.description);
}
myService =
connection.getService("customtags.psiteflashremoting", responseHandler );
partnersiteform.MyGlobalObjects.myService =
myService;
}
<!--- editing / adding a listing --->
public function submitEdit():Void {
var editArguments:Object = {};
<!--- simple text inputs --->
editArguments.p_name = partnername.text;
editArguments.ad_name = adname.text;
editArguments.export_name = exportfilename.text;
<!--- radio buttons --->
editArguments.p_active = p_active.selectedData;
editArguments.ad_active = ad_active.selectedData;
editArguments.ad_layout = layout.selectedData;
editArguments.export_format = format.selectedData;
mx.managers.CursorManager.setBusyCursor();
partnersiteform.MyGlobalObjects.myService.getUpdate(editArguments);
}
</cfformitem>
Thanks
Corey LeGaux
[EMAIL PROTECTED]
You are subscribed to cfcdev. To unsubscribe, please follow the instructions
at http://www.cfczone.org/listserv.cfm
CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
You are subscribed to cfcdev. To unsubscribe, please follow the instructions at
http://www.cfczone.org/listserv.cfm
CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]