Solved

why doesn't my jquery script run?

Posted on 2011-10-01
3
271 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
Comment Utility
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
Comment Utility
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
Comment Utility
hanks
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

743 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