How to Enable JavaScript Errors in SharePoint

Tuesday, April 24, 2007

As soon as you start to do anything non-trivial using JavaScript (like calling web services for example) you'll realise that SharePoint is up to its old tricks and hiding error messages from you again. (While this "error handling" fad might be all the rage in production environments, it's not welcome on my development machine, thank you very much.)

Point your favorite text editor at 'C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\INIT.JS' and Ctrl-g to line 574 where an event handler is registered for the window's onerror event; comment it out to resume normal service.

Add Comment | JavaScript | SharePoint

Comments

No comments posted yet.

Post a Comment

Title
 
Name (Required)
 
Email (Optional, and never displayed)
Website (Optional)
Comments
 
Please add 3 and 2 and type the answer here: