I think James is right, but have you tried changing the return type on 
your cfc to 'void'? Even though I don't that will make a difference. The 
only times I don't return anything from a cfc is when I'm making a 
change to a database (insert, update, delete...), and even then I should 
probably still return some sort of boolean or something to indicate that 
it was successful.

Also, think about it. How would the cfc know where to output the data? 
Someone, please correct me if I'm wrong on this, but since the CFC is 
being called via the XMLHttpRequest object there is no 'output channel' 
(for lack of a better term, on my part). Basically what I mean is that 
this object is specifically (as far as I know) used to send data to the 
server so it can crunch on it, and then receive the data returned by the 
server. Just sending and receiving data, that's it. Output is just 
returned to the caller so that something can then be done with it.  I 
believe that this is why Rob added specific debugging code to AjaxCFC, 
because you couldn't simply output a variable to the screen or 
something, because it would be returned to the calling function via the 
XMLHttpRequest object.

On top of that since the CFC is (for all intents and purposes) being 
called as if it was in the url, the output is *automatically* wrapped in 
a WDDX packet. This is the other thing that AjaxCFC takes care of for us 
(thank, God!). It serializes the WDDX packet.

In short, I don't think you can do what you're trying to do. At least, 
not via the Ajax model.

Again, someone please correct me if I'm wrong in any of this.

Cheers,
Chris

James Holmes wrote:
> This proves that you need to return a value from myFuncIngrWorld().
> You can't just rely on the output being generated - catch the content
> using CFSAVECONTENT and return it as a string.
>
> On 1/2/07, Ioannis Papanikolaou <[EMAIL PROTECTED]> wrote:
>   
>> I finally manage to use firebug properly. It gives me an error on engine.js 
>> line 531.
>>
>> The server it self gives me "invalid reply from server" the loading icon 
>> keeps loading
>>
>> for ever and the the field that I was suppose to receive the text from the 
>> server gives
>>
>> me undefined. The Ajax debugger gives me:
>>
>> "11:35:48 INFO - invoking method: myFuncIngrWorld, id: 3637_1167737748719, 
>> params:"
>>
>> Any advices more than welcome...
>>
>> Ioannis
>>
>>
>>     
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265475
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