diff options
| author | wei <> | 2006-05-05 08:20:50 +0000 | 
|---|---|---|
| committer | wei <> | 2006-05-05 08:20:50 +0000 | 
| commit | 4d70cc125dcd915cdbc8c4f13964d27ebec96eca (patch) | |
| tree | 3ebd35be9ed02e97a08196817ee330131cf938b4 /framework/Web/Javascripts/js | |
| parent | 47d05516b1d1c465217c59732bf8442ab0cfd497 (diff) | |
Update funky active control example. (see tests/FunctionalTests/features/
Diffstat (limited to 'framework/Web/Javascripts/js')
| -rw-r--r-- | framework/Web/Javascripts/js/ajax.js | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/framework/Web/Javascripts/js/ajax.js b/framework/Web/Javascripts/js/ajax.js index 5deebd1b..a9d0fd73 100644 --- a/framework/Web/Javascripts/js/ajax.js +++ b/framework/Web/Javascripts/js/ajax.js @@ -46,8 +46,11 @@ method.toFunction().apply(this,command[method].concat(transport));else if(typeof  {if(transport.status<500)  {var msg='HTTP '+transport.status+" with response : \n";msg+=transport.responseText+"\n";msg+="Data : \n"+inspect(data)+"\n";msg+="Actions : \n";request.getHeaderData(Prado.CallbackRequest.ACTION_HEADER).each(function(action)  {msg+=inspect(action)+"\n";}) -Logger.warn(msg);}},onException:function(e) -{Logger.error('Uncaught Callback Client Exception:',e);},formatException:function(e) +Logger.warn(msg);}},onException:function(request,e) +{msg="";for(var v in e) +{if(typeof(v[e])!="object"&&typeof(v[e])!="function") +msg+=v+":"+e[v]+"\n";} +Logger.error('Uncaught Callback Client Exception:',e);},formatException:function(e)  {var msg=e.type+" with message \""+e.message+"\"";msg+=" in "+e.file+"("+e.line+")\n";msg+="Stack trace:\n";var trace=e.trace;for(var i=0;i<trace.length;i++)  {msg+="  #"+i+" "+trace[i].file;msg+="("+trace[i].line+"): ";msg+=trace[i]["class"]+"->"+trace[i]["function"]+"()"+"\n";}  msg+=e.version+" "+e.time+"\n";return msg;}},encode:function(data) | 
