Solved

why doesn't my jquery script run?

Posted on 2011-10-01
3
273 Views
Last Modified: 2012-05-12
Have no comple errors:  
why doesn't my jquery script run?

<%@ Page Title="Home Page" Language="vb"  AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test Document</title>
<!-- -->
<script type="text/jacascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script>
<script type="text/jacascript" src="Scripts/jquery-1.4.1.js"></script>

<script type="text/jacascript">
$("document").ready(function() {
   alert("The Page is ready!");
});
</script>

</head>
 
<body>
 Test
</body>
</html>  
0
Comment
Question by:westdh
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36897976
some typo error
jacascript

$("document")

corrected :
<%@ Page Title="Home Page" Language="vb"  AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test Document</title>
<!-- -->
<script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script>

<script type="text/javascript">
$(document).ready(function() {
   alert("The Page is ready!");
});
</script> 

</head>
 
<body> 
 Test
</body>
</html>

Open in new window

0
 
LVL 82

Expert Comment

by:leakim971
ID: 36897985
and you don't need both :
jquery-1.4.1-vsdoc.js
jquery-1.4.1.js

the first one contains intellisense help comments
0
 

Author Closing Comment

by:westdh
ID: 36898170
hanks
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now