views:

400

answers:

5

Do you see any problem with this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

I'm in ASP.net and I'm using pikachoose jquery slideshow. It works fine in IE and was working in Firefox. However, somehow it's now stopped working in firefox and firebug is giving the doctype line above out as a syntax error and

$ is not defined for the jquery script?

Any ideas

Thanks

Andy

A: 

In most cases, you get the error:

$ is not defined

when you have not included the jquery library in your page. Make sure that you have included it. Also check to make sure that you have not used the noConflict() method there.

Sarfraz
it is included and like I said, it works in IE, not in firefox. I'm also on the ASP.net local development server.I have the same doctype as on the demo page for pikachoose so I don't think that is the problem.Andy
Andrew Welch
i just swapped to google's hosted jquery and now I'm getting $("#propertyDetailsImages").PikaChoose is not a function[Break on this error] $("#propertyDetailsImages").Pi...eight: 60, show_prev_next: false }); so I think it is a problem with the pikachoose js. I will try swapping out a couple different versions.
Andrew Welch
@Andrew Welch: Yeah then it is problem with pikachoose js.
Sarfraz
it's not that either, because I just swapped it for one I know worked 1hr ago.
Andrew Welch
firefox is not loading any of my javascript files and give errors: Failed to load source for: http://localhost:56453/WebSite4/scripts/pikachoose.jsFailed to load source for: http://localhost:56453/WebSite4/scripts/jquery.jsetc
Andrew Welch
A: 

Please check for unclosed tags

jerjer
A: 

Use http://validator.w3.org/ to validate your code. If you get errors, then fix them and it may help

kasp3r
A: 

Following on from Sarfraz's answer, you'll need to make sure that you have included the jQuery library before you include the "pikachoose" script.

somehow it's now stopped working in firefox

Did you change anything significant before you noticed that it stopped working?

GlenCrawford
A: 

if i work out exactly what happened I'll post my code and the problem, but I'm rolling back to an older version to fix it and will work from there.

Andrew Welch