News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jim Plush's Blog:
AJAX, PHP and Javascript Errors - How to get more data
January 02, 2006 @ 16:09:01

Via our sister site, AjaxDeveloper.org today, there's a pointer to this post on Jim Plush's blog - "AJAX, PHP and Javascript Errors - How to get more data".

Javascript is a powerful tool in the web programmers toolbox however, it's also one of our greatest headaches. Dealing with browser inconsistencies is always a source of great pain. You test on multiple platforms, find everyone you know with a mac running safari and think you have your code locked down however it rarely always works out this way. Being able to detect javascript errors in the wild can be a great resource for you to really see how your code is performing on a day to day basis.

The key to it is that it uses a global function that IE and Mozilla both have to create a global-level error handler for the page - "onerror". He shows you how, with a few simple lines, you can create the function (with an alert inside) and, together with a little bit of Ajax and PHP magic, write it out to an error logging script for review...

0 comments voice your opinion now!
ajax javascript get more data error log ajax javascript get more data error log


blog comments powered by Disqus

Similar Posts

Felix Geisendorfer's Blog: How to organize your CakePHP App's Javascript?

Stuart Herbert's Blog: Quick Tip: Get, Set and Query in One Method

Joshua Eichorn\'s Blog: HTML_AJAX 0.3.1 Released

Ed Eliot's Blog: Automatic merging and versioning of CSS/JS files with PHP

Laravel Podcast: Episode 28: Documentation, JavaScript, & Conspiracy Theories


Community Events

Don't see your event here?
Let us know!


yii2 interview example introduction community conference project series opinion symfony php7 framework podcast laravel api list application language part2 composer

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework