“Object Expected” error in Internet Explorer
December 9th, 2009Problem: I was writing a simple application and I received this error “Object Expected”. I was so confused because it worked perfectly in all the other browsers (firefox, safari, etc) I tested it on. After researching a bit, I figured out what the problem was. Basically it was giving the error “Object Expected” because it was calling my function prematurely. What was supposed to be called within the function hasn’t even been loaded on the page.
Solution: To fix the error I did something simple. I just moved my jquery code from the top of the page (the header) to the bottom of the page (the footer). Therefore, when it goes to call the function it will know where it is returning to