"I Need To..." Web Part and JavaScript error

March 18, 2008

If you try to customize the "I Need To..." web part, as outlined by Gary in his blog post, you might experience a JavaScript error, just like this one:

Line: 1
Char: 1
Error: Object expected
Code: 0

This error is launched by the TATWP_jumpMenu JavaScript function, because it attempts to execute a function defined in another .js file that hasn't been loaded.

Workaround:

Add a hidden Content Editor Web Part with the following HTML source text:

This will ensure that the referenced script file loads correctly.


Profile picture

Written by Edin Kapić Insatiably curious code-writing tinkerer. Geek father. Aviation enthusiast. Cuisine journeyman. Follow me on Twitter