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.
> >
> > On Wed, Sep 12, 2012 at 12:23 PM, Andrew Scott <andr...@andyscott.id.au
> > >wrote:
> >
> > >
> > > Greg, the calling page will not help you here.
> > >
> > > You need to have the network tabbed active, and then refresh the page
> or
> > > force the call that is having the problem. Once that call is made, it
> > will
> > > appear in the list on the left hand side. When you click on that call,
> > > which if I read your posting is called proxy.cfc so when you see
> > proxy.cfc
> > > appear you click on that call. Then a window will open in the network
> > area,
> > > that has many tabs, one of which is the response.
> > >
> > > Now if you have done that, and it is showing no response data, that
> means
> > > the call is failing and you will need to consult your logs as to why
> > > proxy.cfc is failing.
> > >
> > > --
> > > Regards,
> > > Andrew Scott
> > > WebSite: http://www.andyscott.id.au/
> > > Google+: http://plus.google.com/113032480415921517411<
> > > http://plus.google.com/108193156965451149543>
> > >
> > >
> > >
> > >
> > >
> > > On Thu, Sep 13, 2012 at 3:13 AM, Greg Morphis <gmorp...@gmail.com>
> > wrote:
> > >
> > > >
> > > > The demo.cfm has this at the top and then the rest is the same cfm
> code
> > > >
> > > > <head><script type="text/javascript">/* <![CDATA[
> > > > */_cf_loadingtexthtml="<img
> > > > alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
> > > > _cf_contextpath="";
> > > > _cf_ajaxscriptsrc="/CFIDE/scripts/ajax";
> > > > _cf_jsonprefix='//';
> > > > _cf_clientid='235E1C59C699DA256BA5C27C5890D98B';/* ]]>
> > */</script><script
> > > > type="text/javascript"
> > > > src="/CFIDE/scripts/ajax/messages/cfmessage.js<
> > > > http://localhost:81/CFIDE/scripts/ajax/messages/cfmessage.js>
> > > > "></script>
> > > > <script type="text/javascript"
> > > src="/CFIDE/scripts/ajax/package/cfajax.js">
> > > > </script>
> > > >
> > > > <script type="text/javascript">/* <![CDATA[ */
> > > >  ColdFusion.Ajax.importTag('CFAJAXPROXY');
> > > > /* ]]> */</script>
> > > >
> > > > <script type="text/javascript">/* <![CDATA[ */
> > > >  var
> > _cf_proxy=ColdFusion.AjaxProxy.init('/resources/proxy.cfc','proxy');
> > > >
> >  _cf_proxy.prototype.getAllConferencePresentations=function(tag_id,year)
> > > {
> > > > return ColdFusion.AjaxProxy.invoke(this,
> > > "getAllConferencePresentations", {
> > > > tag_id:tag_id,year:year});};
> > > > /* ]]> */</script>
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:352546
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to