cluettr
28 Jul 2007, 1:12 PM
While this may not be an Ext or javascript error I wanted to post it here because there were 5 other similar posts. None addresses my issue specifically and I'm having a but of trouble getting to root cause. My upload fails and gives me the error "missing ) in parenthetical" and by looking into Firebug you can see that for some reason a "(" is being wrapped around the json response wit no ")".
(test.xlstest.xls{"success":true,"message":"File uploaded, renamed.","id":100} \n
From what I've read neither should exist. My php code which returns the json value is clear of everything but the echo of the json_encode...
echo json_encode($resp);
What is odd about the response is that it is throwing in the "(" and the filename twice as part of the response but at no place in my code is this echoed. Has anyone run into a similar issue?
missing ) in parenthetical
hide("loading_site")prototype.js (line 1315)
onComplete(Object container=Object transport=XMLHttpRequest)default.php (line 644)
dispatch(Object)prototype.js (line 943)
(no name)(Object)prototype.js (line 429)
_each(function())prototype.js (line 654)
_each(function())prototype.js (line 927)
each(function())prototype.js (line 428)
dispatch("onComplete", Object container=Object transport=XMLHttpRequest, XMLHttpRequest, null)prototype.js (line 940)
respondToReadyState(4)prototype.js (line 1105)
onStateChange()prototype.js (line 1041)
bind()prototype.js (line 102)
(test.xlstest.xls{"success":true,"message":"File uploaded, renamed.","id":100} \n
(test.xlstest.xls{"success":true,"message":"File uploaded, renamed.","id":100} \n
From what I've read neither should exist. My php code which returns the json value is clear of everything but the echo of the json_encode...
echo json_encode($resp);
What is odd about the response is that it is throwing in the "(" and the filename twice as part of the response but at no place in my code is this echoed. Has anyone run into a similar issue?
missing ) in parenthetical
hide("loading_site")prototype.js (line 1315)
onComplete(Object container=Object transport=XMLHttpRequest)default.php (line 644)
dispatch(Object)prototype.js (line 943)
(no name)(Object)prototype.js (line 429)
_each(function())prototype.js (line 654)
_each(function())prototype.js (line 927)
each(function())prototype.js (line 428)
dispatch("onComplete", Object container=Object transport=XMLHttpRequest, XMLHttpRequest, null)prototype.js (line 940)
respondToReadyState(4)prototype.js (line 1105)
onStateChange()prototype.js (line 1041)
bind()prototype.js (line 102)
(test.xlstest.xls{"success":true,"message":"File uploaded, renamed.","id":100} \n