Click here to Skip to main content
13,404,806 members (38,170 online)
Rate this:
Please Sign up or sign in to vote.
Hello to all.
I was working in a project with VS2012, in my log-in page I was using a JQuery Script to make some effects over certain images, and in VS2008 it works perfect.

I passed all the project to VS2008 and the project works perfectly, except for the Log-in, there I'm having the following error:

Microsoft JScript runtime error: '$' is undefined

Any idea of how can I solve it? The problem is when debugging, when I start the project from the server I have no problems.

Thanks in advance

Some Code:
<script src="./Scripts/jquery-1.7.js" type="text/javascript"></script>
<script src="./Scripts/jqFancyTransitions.js" type="text/javascript"></script>

<script type="text/javascript">
        function () {
            $('#slideshowHolder').jqFancyTransitions({ width: 394, height: 144 });
Posted 30-Jan-13 6:12am
Updated 30-Jan-13 6:43am
richcb 30-Jan-13 11:14am
You will need to post the code you have. We cannot see your screen.
Member 9581488 30-Jan-13 11:17am
Are you using jQuery? if yes, Have you include related reference files?
EddyGuzman 30-Jan-13 11:41am
Yes, is with JQuery, and I already have all the references.
Member 9581488 30-Jan-13 11:52am
try running simple show and hide code for test & see if that works else that files are not getting references properly..try changing src="./Scripts/jqFancyTransitions.js" to src="../Scripts/jqFancyTransitions.js"
giri001 30-Jan-13 12:34pm
may be u need to restart your Dev studio because i tested everything with 2008 and its working fine.
Sergey Alexandrovich Kryukov 30-Jan-13 12:48pm
Are you sure jQuery is really included? This is the only possible reason I can see.
Sergey Alexandrovich Kryukov 30-Jan-13 12:50pm
I also suspect that jQuery file is not really found, but it can be any other directory.
OP just needs to check it up and make sure the file paths are correct.
Rene Bustos 30-Jan-13 13:23pm
in several Cases you need be sure that the Objects that you are creating in runtime.. these are created. this is a reference problem cause with the object called slideshowHolder. please check if that control is created when the JQ is trying to access to this control. regards-
EddyGuzman 30-Jan-13 19:07pm
Yes I'm sure cause the other scripts are working fine.
I'm also noticing that the images are not show, I don't know if this is for the problem with the Script

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180221.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100