|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
OnResult is not being calledDesign:
I have <cfform type="flash"> containing a <cftree>. When a item in the <cftree> is selected, I want the various edit controls to populate with data. I have followed the tutorial "http://tutorial469.easycfm.com/", but the "onResult" function still isn't getting called. I verified that ColdFusion has "Enable Flash Remote Support". Nothing in the logs, suggest there is a problem. Quetions: What can I do to isolate the problem? Do I need to configure a gateway? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:273 Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30 |
|
|
RE: OnResult is not being calledTry saving your result variable to the session scope
-----Original Message----- From: Brian Erickson [mailto:ericksbr@...] Sent: Tuesday, September 09, 2008 10:58 AM To: CF-Flash Subject: OnResult is not being called Design: I have <cfform type="flash"> containing a <cftree>. When a item in the <cftree> is selected, I want the various edit controls to populate with data. I have followed the tutorial "http://tutorial469.easycfm.com/", but the "onResult" function still isn't getting called. I verified that ColdFusion has "Enable Flash Remote Support". Nothing in the logs, suggest there is a problem. Quetions: What can I do to isolate the problem? Do I need to configure a gateway? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:274 Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30 |
|
|
Re: OnResult is not being calledModified:
Sample.cfc to look like: <cfcomponent> <cffunction name="getContactInfo" access="remote" returntype="query"> <cfargument name="Parameter" required="yes" type="String"> <CFQUERY NAME="SampleQry" DATASOURCE="lp_books"> Select CURRENT_DATE </CFQUERY> <cfset SESSION.rsTest = "Testing" /> <cfreturn SampleQry> </cffunction> </cfcomponent> The SESSION.rsTest is still empty. Does this mean "getContactInfo" is not being called? ----------------------------Source Code <cfset SESSION.rsTest = "" /> <cfform name='MailingList' format="flash" method="POST" width="90%" height="500" skin="haloBlue" action="#URLSessionFormat("Test.cfm")#" onload="formOnLoad()" > <cfformitem type="script"> public function formOnLoad():Void{ <!--- set up remoting service ---> setUpRemoting(); <!--- set up styles ---> } public function setUpRemoting():Void { <cfoutput> var connection:mx.remoting.Connection = mx.remoting.NetServices.createGatewayConnection("http://#cgi.HTTP_HOST#/"); var componentPath:String = ""; var listingService:mx.remoting.NetServiceProxy; </cfoutput> var responseHandler:Object = {}; <!--- put controls in the responseHandler's scope ---> var contactList:mx.controls.Tree = contactList; <!--- handle search by default onResult function ---> responseHandler.onResult = function( results: Object ):Void { alert("Got Here"); alert(results.message); contactList.dataProvider = results; mx.managers.CursorManager.removeBusyCursor(); } <!--- handle create response ---> responseHandler.create_Result = function( results: Object ):Void { alert("Got Here"); alert(results.message); mx.managers.CursorManager.removeBusyCursor(); //show a message alert(results.message); } <!--- handle update response ---> responseHandler.update_Result = function( results: Object ):Void { alert("Got Here"); alert(results.message); mx.managers.CursorManager.removeBusyCursor(); <!--- show a message ---> alert(results.message); } <!--- handle remove response ---> responseHandler.remove_Result = function( results: Object ):Void { alert("Got Here"); mx.managers.CursorManager.removeBusyCursor(); <!--- show a message ---> alert(results.message); } <!--- default error handler ---> responseHandler.onStatus = function( stat: Object ):Void { alert("Got Here"); <!--- if there is any error, show an alert ---> alert("Error: " + stat.description); mx.managers.CursorManager.removeBusyCursor(); } <!--- store service in global variable ---> MailingList.listingService = connection.getService(componentPath, responseHandler ); } <!--- function that gets called when grid selection changes, used to bind other controls to grid values ---> public function listingTreeChanged():Void { var sSelected:String; sSelected = contactList.selectedNode.getProperty('data').value; MailingList.listingService.getContactInfo(sSelected); alert(sSelected); contactList.setFocus(); } </cfformitem> <cfformgroup type="hbox" height="520"> <cfformgroup type="panel" width="350" label="Contacts" style="panelBorderStyle:'roundCorners'; themeColor:##FE7E00; headerColors:##F2CB2A, ##FFE57A; backgroundColor:##FFE57A;"> <cftree name="contactList" lookAndFeel="motif" onchange="listingTreeChanged()"> <cftreeitem value="Contact" display="Contact" expand="no"> </cftree> </cfformgroup> </cfformgroup> <cfinput name="Submit" type="submit" value="Send"> </cfform> ---------------------------------------------------------- >Try saving your result variable to the session scope > >Design: >I have <cfform type="flash"> containing a <cftree>. >When a item in the <cftree> is selected, I want the various edit controls to >populate with data. > >I have followed the tutorial "http://tutorial469.easycfm.com/", but the >"onResult" function still isn't getting called. >I verified that ColdFusion has "Enable Flash Remote Support". >Nothing in the logs, suggest there is a problem. > >Quetions: >What can I do to isolate the problem? >Do I need to configure a gateway? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:275 Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30 |
|
|
RE: OnResult is not being called<CFQUERY NAME="SampleQry" DATASOURCE="lp_books" result="SESSION.rsTest">
-----Original Message----- From: Brian Erickson [mailto:ericksbr@...] Sent: Wednesday, September 10, 2008 10:19 AM To: CF-Flash Subject: Re: OnResult is not being called Modified: Sample.cfc to look like: <cfcomponent> <cffunction name="getContactInfo" access="remote" returntype="query"> <cfargument name="Parameter" required="yes" type="String"> <CFQUERY NAME="SampleQry" DATASOURCE="lp_books"> Select CURRENT_DATE </CFQUERY> <cfset SESSION.rsTest = "Testing" /> <cfreturn SampleQry> </cffunction> </cfcomponent> The SESSION.rsTest is still empty. Does this mean "getContactInfo" is not being called? ----------------------------Source Code <cfset SESSION.rsTest = "" /> <cfform name='MailingList' format="flash" method="POST" width="90%" height="500" skin="haloBlue" action="#URLSessionFormat("Test.cfm")#" onload="formOnLoad()" > <cfformitem type="script"> public function formOnLoad():Void{ <!--- set up remoting service ---> setUpRemoting(); <!--- set up styles ---> } public function setUpRemoting():Void { <cfoutput> var connection:mx.remoting.Connection = mx.remoting.NetServices.createGatewayConnection("http://#cgi.HTTP_HOST#/"); var componentPath:String = ""; var listingService:mx.remoting.NetServiceProxy; </cfoutput> var responseHandler:Object = {}; <!--- put controls in the responseHandler's scope ---> var contactList:mx.controls.Tree = contactList; <!--- handle search by default onResult function ---> responseHandler.onResult = function( results: Object ):Void { alert("Got Here"); alert(results.message); contactList.dataProvider = results; mx.managers.CursorManager.removeBusyCursor(); } <!--- handle create response ---> responseHandler.create_Result = function( results: Object ):Void { alert("Got Here"); alert(results.message); mx.managers.CursorManager.removeBusyCursor(); //show a message alert(results.message); } <!--- handle update response ---> responseHandler.update_Result = function( results: Object ):Void { alert("Got Here"); alert(results.message); mx.managers.CursorManager.removeBusyCursor(); <!--- show a message ---> alert(results.message); } <!--- handle remove response ---> responseHandler.remove_Result = function( results: Object ):Void { alert("Got Here"); mx.managers.CursorManager.removeBusyCursor(); <!--- show a message ---> alert(results.message); } <!--- default error handler ---> responseHandler.onStatus = function( stat: Object ):Void { alert("Got Here"); <!--- if there is any error, show an alert ---> alert("Error: " + stat.description); mx.managers.CursorManager.removeBusyCursor(); } <!--- store service in global variable ---> MailingList.listingService = connection.getService(componentPath, responseHandler ); } <!--- function that gets called when grid selection changes, used to bind other controls to grid values ---> public function listingTreeChanged():Void { var sSelected:String; sSelected = contactList.selectedNode.getProperty('data').value; MailingList.listingService.getContactInfo(sSelected); alert(sSelected); contactList.setFocus(); } </cfformitem> <cfformgroup type="hbox" height="520"> <cfformgroup type="panel" width="350" label="Contacts" style="panelBorderStyle:'roundCorners'; themeColor:##FE7E00; headerColors:##F2CB2A, ##FFE57A; backgroundColor:##FFE57A;"> <cftree name="contactList" lookAndFeel="motif" onchange="listingTreeChanged()"> <cftreeitem value="Contact" display="Contact" expand="no"> </cftree> </cfformgroup> </cfformgroup> <cfinput name="Submit" type="submit" value="Send"> </cfform> ---------------------------------------------------------- >Try saving your result variable to the session scope > >Design: >I have <cfform type="flash"> containing a <cftree>. >When a item in the <cftree> is selected, I want the various edit >controls to populate with data. > >I have followed the tutorial "http://tutorial469.easycfm.com/", but the >"onResult" function still isn't getting called. >I verified that ColdFusion has "Enable Flash Remote Support". >Nothing in the logs, suggest there is a problem. > >Quetions: >What can I do to isolate the problem? >Do I need to configure a gateway? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:276 Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30 |
|
|
Re: OnResult is not being called"SESSION.rsTest" still contains an empty string.
><CFQUERY NAME="SampleQry" DATASOURCE="lp_books" result="SESSION.rsTest"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:277 Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30 |
| Free embeddable forum powered by Nabble | Forum Help |