Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
Mark Forsberg #1
No Remoting Response
I am using the following function for an onKeyUp event. I don't get anything,
results, an error, nothing. When I mess up the cfc name I still don't get an
error. The same code works just fine in another application. The only thing
that has changed is the name of the cfc and method. When I don't comment out
the alert('Joe'), it fires on every onKeyUp. It looks like the remoting code is
being ignored.
Any ideas of what could be wrong?
function getMyRemoting(){
//start remoting
//create connection. Should be installed by default with CFMX7 with correct
path
var connection:mx.remoting.Connection =
mx.remoting.NetServices.createGatewayConnection("h ttp://#CGI.http_host#/flashser
vices/gateway/");
//declare service
var myService:mx.remoting.NetServiceProxy;
// put the controls in scope to avoid calling _root
var searchResults = searchResults;
var searchData = searchData;
// Create the object to handle the response
var responseHandler = {};
// function that receives the response
responseHandler.onResult = function( results:Object ):Void {
// when results are back we show the data received
searchResults.dataProvider = results;
}
// function that receives any error in call
responseHandler.onStatus = function ( stat:Object ):Void{
//if there is an error show the alert
alert("Error while calling cfc: " + stat.description);
}
//get the Service. First parameter is path to component and
//the second is to the object that will handle the response
myService = connection.getService("Phonebook.CFC.Phonedata",
responseHandler );
<!--- alert('joe'); --->
//make the actual call
myService.getNetworkUsers();
<!--- //end remoting --->
}
Mark Forsberg Guest
-
Slow login response response on TS 03 in AD mixed mode
We upgraded our NT 4 domain to an AD mixed until we get rid of the NT 4 BDC;s after completing this upgrade users began complaining about how long... -
Response.Flush / Response.Redirect
Hi, I've had a good google and can't find anything already on this so : I'm currently trying to have a 'Page Loading' page on a site. The way... -
AW7 vs. DirectorMX for psychology experiment using response times AND response answers
Hello, I'm very new to application design, but need to develop a web based application to use at multiple schools as part of an experimental... -
Response.Write and Response.Redirect
On my Page_Load event, i need to do some validation and then either let them proceed, or display a error message and boot them back to the previous...



Reply With Quote

