Re: Couple more AJAX questions

From: Date: Mon, 17 Oct 2005 16:58:09 +0000
Subject: Re: Couple more AJAX questions
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21513@lists.php.net to get a copy of this message
Ken Restivo wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 One more question: I'm getting responses like "Error: PHP Error". That's nice. *Which* PHP error specifically? This is kind of difficult to troubleshoot. I'm looking in my Apache logs (where I have E_ALL going to), and no errors in there. Likewise no PEAR errors, which go to a custom error callback which saves them to a log. So, HTML_AJAX is telling me "PHP Error" and PHP is telling me, well, there's no error. Neither have any PEAR errors been thrown. Is there some way to get HTML_AJAX to be a bit more verbose? Again please look at the examples directory. You'll want add a javascript error_handler, there is an example of one in proxy_usage_inline.php i believe.
HTML_AJAX.onError = function(e) { var msg = ""; for(var i in e) { msg += i+':'+e[i]+"\n"; } alert(msg); } Also there are more server side logging options sitting in svn, i'll try to get a release out this week. -josh
- -ken - -- - --------------- The world's most affordable web hosting. http://www.nearlyfreespeech.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDUb8Ae8HF+6xeOIcRAiqnAJ90P/XPCcyrIV9StS1H7/DkN2RomwCggV/F 34Rq35Nuk4cn88I0vHqisu8= =SwuK -----END PGP SIGNATURE-----


« previous php.pear.general (#21513) next »