Click here to Skip to main content
11,409,532 members (64,989 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Javascript HTML , +
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">
    $(document).ready(
        function () {
            $('#slideshowHolder').jqFancyTransitions({ width: 394, height: 144 });
        }
        );
Posted 30-Jan-13 6:12am
Edited 30-Jan-13 6:43am
v2
Comments
richcb at 30-Jan-13 11:14am
   
You will need to post the code you have. We cannot see your screen.
Member 9581488 at 30-Jan-13 11:17am
   
Are you using jQuery? if yes, Have you include related reference files?
EddyGuzman at 30-Jan-13 11:41am
   
Yes, is with JQuery, and I already have all the references.
Member 9581488 at 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"
Sergey Alexandrovich Kryukov at 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.
—SA
giri001 at 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 at 30-Jan-13 12:48pm
   
Are you sure jQuery is really included? This is the only possible reason I can see.
—SA
EddyGuzman at 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
Rene Bustos at 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-

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 330
1 OriginalGriff 285
2 Dave Kreskowiak 115
3 Andy Lanng 115
4 Maciej Los 100
0 Sergey Alexandrovich Kryukov 8,731
1 OriginalGriff 6,895
2 Maciej Los 3,332
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web04 | 2.8.150414.5 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2015
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