shouldn't d.setCallbackHandler(passIdOn) be BEFORE d.doSave()?
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Don L wrote:
>> goal: pass cfc's simple result value back to caller page and set the
>> page's hidden field of 'uid' with this value.
>>
>> method: cfajaxproxy, cfc and js class library
>> js code snip:
>> function Save(frm){
>> var d = new doSave();
>> d.setForm(frm);
>> d.setHTTPMethod('POST')
>> d.doSave(); // and return the inserted uid
>> d.setCallbackHandler(passIdOn);
>> }
>>
>> function passIdOn(id) {
>>
>
>
>> document.getElementById('uid').innertHTML = id;
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302319
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4