I've tried returntype of query, string, and even taking that attribute off

<cffunction name="getAllConferencePresentations" access="remote"
output="false" returntype="query" returnformat="json">

still not returning it to back to demo.cfm

On Wed, Sep 12, 2012 at 1:01 PM, Greg Morphis <gmorp...@gmail.com> wrote:

> I noticed that earlier and changed it. It still highlights the
> var pId = presentation.DATA[0][0];
>
> with a null error
>
>
> On Wed, Sep 12, 2012 at 12:58 PM, Rodney Enke <renk...@gmail.com> wrote:
>
>>
>> In your cfc method try changing the returntype="json" to returntype="any"
>> and add the attribute returnformat="json" so you function declaration
>> should look like:
>>
>> <cffunction name="getAllConferencePresentations" access="remote"
>> output="false" returntype="any" returnformat="json">
>>
>> I have not tested this so it may not fix your problem, but I believe json
>> isn't a valid returntype.
>>
>> -
>> Rodney
>>
>> On Wed, Sep 12, 2012 at 12:36 PM, Greg Morphis <gmorp...@gmail.com>
>> wrote:
>>
>> >
>> > What's weird is if I click on the RequestURL
>> >
>> >
>> >
>> http://localhost:81/resources/proxy.cfc?method=getAllConferencePresentations&returnFormat=json&argumentCollection=%7B%22tag_id%22%3A0%2C%22year%22%3A2012%7D&_cf_nodebug=true&_cf_nocache=true&_cf_clientid=235E1C59C699DA256BA5C27C5890D98B&_cf_rc=0
>> >
>> >
>> > I get:
>> >
>> >
>> "COLUMNS":["ID","TITLE","PATH","AUTHOR","CONFERENCETITLE","TAG_ID","DATE"],"DATA":[[44,"Affiliate","\/assets\/utilities\/serve.cfm?gid=00666248-bead-4df7-b51f-2790a9bb232e","foo","NASWA
>> > UI Committee Meeting",null,"July, 16 2012 10:40:04"],
>> >
>> > ...
>> >
>> > but it still highlights
>> > var pId = presentation.DATA[0][0];
>> >
>> > saying presentation is undefined.
>> >
>>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352547
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to