I do not believe flash remoting within cfforms is possible. I believe
Tim Buntel said something to the effect of "If flash forms could
connect back to your server, then you wouldn't need Flex". Or atleast
thats how I heard it. :)
-Adam
On 8/30/05, David Brown <[EMAIL PROTECTED]> wrote:
> I am trying to use flash remoting with a cfform and a cfrid on the flash
> cfform. I can send the grid data to the remote function and cfdump contents
> of the grid without any issues.
>
> But when I use another remote function to change the contents of the cfgrid
> and then try to call the same remote function again I get an error.
> unsupporrted type found in stream
>
> Everything works until I call the funtion to return another query to the
> grid. That functions works.. You see the new data in the grid, but when i
> try to send the new data i get the error.
>
> What is different about a grid that is first populated with a cfquery on page
> load and a cfgrid that has been updated with a remote cfc call?
>
> Here is the code I am using to send the contents of the cfgrid to the remote
> function.
>
> <cfsavecontent variable="SendGrid">
> <cfoutput>
> //create connection
> var connection:mx.remoting.Connection =
> mx.remoting.NetServices.createGatewayConnection("http://#cgi.HTTP_HOST#/flashservices/gateway/");
> //declare service
> var myService:mx.remoting.NetServiceProxy;
> </cfoutput>
> //put the controls in scope to avoid calling _root
> var qccteamgrid = qccteamgrid;
> var returnvalue = returnvalue;
> //make an object that will handle the response
> var responseHandler = {};
> returnvalue.text = "";
> //function that receives the response
> responseHandler.onResult = function( results: Object ):Void {
> //when results are back, populate the cfgrid
> returnvalue.text=results;
> }
> //function that receives any error that may have occurred during the call
> responseHandler.onStatus = function( stat: Object ):Void {
> //if there is any error, show an alert
> alert("Error while calling cfc:" + stat.description);
> }
> //get service. First parameter is path to component and
> //the second it's the object that will handle the response
> myService =
> connection.getService("flashservices.gateway.qccflashRemotingResponder",
> responseHandler );
> //make call
> myService.UpdateAttendees(qccteamgrid.dataProvider);
> </cfsavecontent>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216909
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54