Sagewire Logo

CFGRID refresh and Flash Remoting Services

2 Message(s) by 2 Author(s) originally posted in flash and cfml


From: rvp68 Date:   Thursday, December 14, 2006
hello all,

I've 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 isn't populated.
Both servers are running ColdFusion 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


From: ws_richland Date:   Thursday, September 06, 2007
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();



Next Message: CFGRID Refresh/Reload



Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional