views:

334

answers:

3

I am having a wierd error and jQuery not working depending on how the url is written.

if the url is

/index.cfm?show=about-us

all is good. BUT if the url is

/index.cfm/show_about-us

jQuery doesn't seem to load correctly and I get a "$ is not defined" error in fireBug

I can't use the standard ?= query string I need to be able to use the re-write method.

Any ideas are appriciated Lance

+1  A: 

What does your <script src="..."> say? I have a feeling it's looking for /index.cfm/jquery.js which doesn't exist.

recursive
yup it was a bonehead mistake. Thanks for the correction
Lance
A: 

Sorry this was a reference issue to the files. Evendently in that re-write sytle the dom is still trying to navigate the file system starting in the /show_about-us/ directory which isn't truely a directory.

Lance
A: 

That's it. @recursive got it in one.

Consider using the absolute path from the root of your domain in src attributes. For example: <script src="/jquery.js">

irama