and you should set root property of store to tell which property of incoming object contains data. in my example it's "records"

Somani

18 Jun 2010, 7:38 AM

Hey

I've tried it with your Code and changed the root-property to 'records' - still the same error :(

Somani

18 Jun 2010, 7:55 AM

God damn i'm so stupid -.- i included my header into the handler, so the returned code was more then the json-stuff... i didn't check the source in browser-output, only the human readable :D

jarrednicholls

18 Jun 2010, 8:50 AM

Haha Somani, I've done that before, no worries. Also watch out for PHP warnings and notices, if they are turned on and written out to the response streams then it will affect your data as well.

j-joey

18 Jun 2010, 10:42 AM

don't worry, things happen... i suggest you to test your projects with firebug under firefox. it will save lots of time...

Somani

18 Jun 2010, 11:20 PM

don't worry, things happen... i suggest you to test your projects with firebug under firefox. it will save lots of time...
Yeah i did use firebug when i solved the problem, but not from the beginnig -.- a mistake i would not commit again ^^

julienbouetard

10 Aug 2010, 4:50 PM

HI everyone,

I have the same error as Somani, however when I copy my JSON manually into data it works well and I can load the records but not directly from the url.

On first glance it looks okay to me. Have you tried configuring the store explicitly, and omit the metaData object...just to see if it works with just the data coming back? My thought is that it doesn't have to do with that.

You could attach an event listener to the store's "exception" event handler, and write out the responseText directly to see if its indeed the "only" thing coming back from the server (or you could use Firebug). Just a thought. There are other helpful items in the exception event that might tell the problem: http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.DataProxy&member=exception

julienbouetard

12 Aug 2010, 4:50 PM

Hi Jarred,

Actually when I export the project it is working fine in my web browser with or without the metadata. Could that come from a problem of proxy settings ?

cheers

Julien

jarrednicholls

12 Aug 2010, 9:23 PM

Ah, yes perhaps. If you are configured to communicate through a proxy, the default "whitelist" is 127.0.0.1, localhost, and all private subnet address spaces (http://en.wikipedia.org/wiki/Private_network). If you are trying to load data from outside of that whitelist that shouldn't be going through the proxy, then it would definitely cause problems as the software will try to route calls outside of the whitelist through the proxy server.

julienbouetard

15 Aug 2010, 11:29 PM

Hi Jarred,

I was calling the Json using localhost so with your explanation that should not be the problem.

As it is working fine when i export the data, could there be a problem on how the charachters are sent to the designer.

Thanks for your help in that matter.

cheers

Julien

poly.xtian

27 Sep 2010, 6:40 PM

Hi Experts,

I'm really newbie. I cannot load the data from the database. Help me please. Here are the codes: