When you use a Windows Vista Sidebar gadget, you receive an error message that resembles the following:
A Runtime Error has occurred. Do you wish to Debug? Line: <line number> Error: Unspecified error
.
Back to the top
This problem occurs if the gadget's script code tries to set a gadget event to null. Sidebar gadget events cannot be set to null.
Back to the top
To work around this problem, assign a function to the Sidebar gadget event.
Back to the top
Steps to reproduce the problem
| 1. | Open the gadget's .html file.
|
| 2. | Type the following code inside a <script> tag:System.Gadget.ondock = myFunc;
System.Gadget.ondock = null; |
For more information about Sidebar gadgets, visit the following Microsoft Web site:
Back to the top