all groups > coldfusion flash integration > december 2006 >
You're in the

coldfusion flash integration

group:

CFGRID refresh and Flash Remoting Services


CFGRID refresh and Flash Remoting Services rvp68
12/14/2006 1:04:57 PM
coldfusion flash integration:
hello all,

I have the following problem: I am using Flash Remoting Services to populate a
cfgrid during the form "onload". Works fine on my development server. On my
production server, cfgrid is not populated.
Both servers are running CF MX 7.0.2, and the config is the same.

Any idea what that can be?

As a bypass, is there a way to refresh content of a cfgrid?

Thanks in advance for any help.
Cheers


Re: CFGRID refresh and Flash Remoting Services ws_richland
9/6/2007 9:46:41 PM
Guess you found it by now, but here is a method that will return a response
from a CFC if the connection fails:

var responseHandler = {};

//put the controls in scope to avoid calling _root
var contactList = contactList;

responseHandler.onResult = function( results: Object ):Void {
//when results are back, populate the cfgrid
contactList.dataProvider = results;
}

responseHandler.onStatus = function( stat: Object ):Void {
//if there is any error, show an alert
alert("Error while calling cfc:" + stat.description);
}

//get service
myService = connection.getService("flashRemotingResponder", responseHandler );
//make call
myService.getMembers();
AddThis Social Bookmark Button