I used cfajaxproxy to create a JavaScript method, like so:
<cfajaxproxy cfc=account.InternalAccountManagement" 
jsclassname="accountManager">

Then, within a <script> block, I have the following:
var am = new accountManager();
am.setCallbackHandler(showUpdate);
am.setErrorHandler(myErrorHandler);
am.updatePerson(1,"Doe","John");

My InternalAccountManagement.cfc has a function named, of course, updatePerson, 
and it takes three arguments:  personID, lastName, and firstName (declared in 
that order in the method).  What I'd really like to do in my JavaScript block 
above is to take advantage of ColdFusion's argumentCollection parameter, and 
pass 1, "Doe," and "John" within one argumentCollection, rather than passing 
them as three separate values in the am.updatePerson call.  Is this possible? 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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-Talk/message.cfm/messageid:311460
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to