> 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;

// 03/30/2008
// for debug: populate the 'testDivId' caller CFM div
  document.getElementById('testDivId').innertHTML = id;
// result: an {id} value is displayed for the div, however,
alert(document.getElementById('testDivId').innerHTML);
indicates ''.

// comments:
this test seems to suggest that a) the cfajaxproxy writes/displays the {id} 
value to the target DIV, however, it DOES NOT Set the DIV Value={id};
b) my box is compromised (thing do not work as intended)

probably a) is more likely for some top CF experts are also looking into the 
problem and didn't seem to have found an answer yet... or I may be a bit 
impatient...

c) not surprisingly I'm an idiot...

thks.

> }
> 
> problem:
> a) IE7 complains about internal server error
> b) FF2 fails without error
> 
> What am I not doing right?
> 
> Thanks.
> 
> P.S. bear in mind everything works fine save the setCallbackHandler 
> part...
> 


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

Reply via email to