“Object expected” jquery error: last place to look (or why you should look carefully at the META tags)

That’s will help others for sure: ever happen to work on localhost on a legacy application (no matter if on Apache or IIS) and to have some missing images, css files or js files? Even if you are sure that there are in right place, accessible by the web server?

Here is my Error Console from Firefox:

Firefox Error Console

Here are two Firebug print screens:

On first one, first css file looks ok.
Fire Bug 1

On second one, the css file shows a 404 Not found error, same my jquery script reference.Fire Bug 2

The problem here is the base meta tag!

It appends the live domain to the requested references. That’s why first css reference is found (it is found at the live server, actually) but not the jquery and second css, added locally by me.
First warning in Error Console shows that the request is not made locally.

Hope that will save some time to the others, too!

emipasat posted at 2009-9-17 Category: Development/Programming | Tags: , , , , ,

Leave a Reply

(Ctrl + Enter)