Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
<head>
	<link rel="stylesheet" type="text/css" media="screen" href="css/layoutdock.css">
	<link rel="stylesheet" type="text/css" media="screen" href="css/dock.css">
	<script type="text/javascript" src="/js/jquery.jqDock.min.js"></script>
	<script type="text/javascript">
		
$(function(){
Uncaught ReferenceError: $ is not defined
			var jqDockOpts = {align: 'left', duration: 150, labels: 'tc', size: 40, distance: 8};
			$('#jqDock').jqDock(jqDockOpts);
		});
	</script>
</head>
Posted
Updated 20-Aug-13 23:13pm
v2

This shows that you are not using jquery plugin which need to be put at the top.
Before any jquery plugin

download jquery from here
http://jquery.com/download/[^]
either download or you can use CDN link also

JavaScript
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">


once you put this in your file then put your jquery plugin
JavaScript
<script type="text/javascript" src="/js/jquery.jqDock.min.js"></script>


Cheers
 
Share this answer
 
v2
Comments
Member 10222481 21-Aug-13 6:02am    
can you show me the whole code. still have errors. :(
kishore sharma 21-Aug-13 6:08am    
no code is needed ,you just add above link in your file and check.
that link make application(browser) to understand the $ and then browser treat jquery syntax as statnderds
include JQuery library in your page from Here. "$" is a construct of JQuery.I guess compiler is not getting reference to JQuery library.That's why it is showing an error.First include areference to jquery as

HTML
<script type="text/javascript" src="/js/jquery-1.10.2.min.js"></script>

Then use
HTML
<script type="text/javascript" src="/js/jquery.jqDock.min.js"></script>
 
Share this answer
 
v2
Comments
Member 10222481 21-Aug-13 6:42am    
still have errors :( it's only working on the home page

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