I have a js script simply getting a basic Json content page.js
{
"desc":"",
**"save":function(){alert(0);}**
}
then on success:function(data)
I simply wanted to do data.save()
but the onsuccess never gets called ?
'complete' does though but still my save function isn't evaluated ?
I tried writting it as a string : "save":"function(){alert(0);}"
and applying it to eval
onSuccess , but strangely it says function has no name
Is this a limitation -- we can't pass functions as part of the json reponse object?
even less execute them ? or am I simply doing something wrong
Thanks for the insight