Click here to Skip to main content
15,881,882 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

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