Solved

why doesn't my jquery script run?

Posted on 2011-10-01
3
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
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…
Suggested Courses

622 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