0 Replies Latest reply on Mar 9, 2008 2:34 PM by Jwahl

    cf8 & serializeJSON

    Jwahl
      This is my Query:
      < cfquery datasource="Artist" name="getVenues">
      select venueid,venuename from tbl_venue
      </ cfquery>< cfoutput>#serializeJSON(getVenues,false)#</ cfoutput>

      Now when I use EXT like this:
      var venueDS = new Ext.data.Store({
      proxy: new Ext.data.ScriptTagProxy({
      url: ' http://www.myDomain.com/remote.cfm'
      }),
      reader: new Ext.data.JsonReader({
      root: 'DATA',
      id: 'VENUEID'
      }, [
      {name: 'vid', mapping: 'VENUEID'},
      {name: 'vname', mapping: 'VENUENAME'}
      ]),

      baseParams: {artistid:20}
      });

      I get the JSON that cf out puts but I get a 'invalid label' error in the JS console.
      I have found others that have solved this by wrapping it in parenthesis' but it does not work in my case.
      Any ideas?