PDA

View Full Version : Problem with Jsonreader and php4



chemist458
6 Sep 2007, 10:48 AM
Dear All,
I am following and extending the example of loading and submtting data with a form.
My first problem was of course not having the json_encode function, which I cured with the JSON.php file that was recommended on this forum, thats sorted.
The problem I have now is the form will not load any data, I can see the data is there by getting the php data page to print out its values.
It prints this out

[{"fname":"David","sname":"Morris","email":"david@morris.com","telephone":"01254789568","user_id":"100007","location":"London","country":null,"postcode":"E3","description":"Hi, my name is David.\r\nI like being in London its great. You can meet me at many pubs.","dob":null,"msn":"fty@test.com","skype":"test@test.com","hobbies":null,"music":null,"places":null,"newsletter":"0"}]

Which looks right to me.
But in IE I get an error Object Expected, and in FF with Firebug it says Ext.data.Jsonreader is not a constructor.

Any ideas?

Thanks in advance,
George

chemist458
6 Sep 2007, 10:59 AM
Sorry Guys,
Me being silly.
I put Jsonreader and not JsonReader.
George