Thursday, February 7, 2008

JavaScript Object Expected Error(Missing Script SRC or Type!)

During the work, I had to debug someone's code with this JavaScript Popup Object Expected Error that is stopping ASP web form to display. Well, after inspecting around and that the JavaScript function was correct, I quickly found out that the script src definition wasn't given...dah! So don't forget to include the JavaScript file if you used it as reference for the functions or...
In most (if not all) the "Object Expected" error occurs when you are adding a reference on your page to a JavaScript file which doesn't exist or cannot be opened.
If the filename of the SRC attribute is incorrect, then you'll get the "Object Expecte" JavaScript error.
Remember to check all your filenames and filepaths when you get this error.

Bookmark and Share