Hi, In my app i m using JQuery..In tat I m using tat Ajax GEt to retrive values from cakephp controller viewforms ....But if i alert myObject..It doesnt came..
It show me the error as missing ) in parenthetical {"attributes":[{"type":"Text","labels":"Untitled1"}]})
where {"attributes":[{"type":"Text","labels":"Untitled1"}]}) is my htm
THis is my JQuery code
$.ajax({
type: "POST",
url: "./updateField",
data: "name="+fieldname,
success: function(msg){
}//success
});//ajax
//Retriving the updated value in JSON Format
var htm = $.ajax({
type: "GET",
url: "./viewforms",
async: false
}).responseText;
var myObject = eval('(' + htm + ')');
But the same code works well in other system.Please suggest me....