lakilevi
14 Oct 2011, 2:31 AM
Hello.
I am kind new in Touch, but I have some experience in ExtJs.
I was trying to use the Ext.decode or Ext.utils.JSON.decode as in following example
var stringData = "{date: 'Friday 03rd of August 2007 02:47:09 PM'}";
try {
var jsonData = Ext.decode(stringData);
alert('Success');
// You can do anything with jsonData if you want.
}
catch (err) {
alert('ERROR');
}
But I got always the Error message, so there might be some problem with the decode function?
Thank you very much!
I am kind new in Touch, but I have some experience in ExtJs.
I was trying to use the Ext.decode or Ext.utils.JSON.decode as in following example
var stringData = "{date: 'Friday 03rd of August 2007 02:47:09 PM'}";
try {
var jsonData = Ext.decode(stringData);
alert('Success');
// You can do anything with jsonData if you want.
}
catch (err) {
alert('ERROR');
}
But I got always the Error message, so there might be some problem with the decode function?
Thank you very much!