Click here to Skip to main content
15,300,160 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:
XML
<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
Updated 30-Jan-13 5:43am
v2
Comments
Richard C Bishop 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"
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.
—SA
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.
—SA
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
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-

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900