Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

why doesn't my jquery script run?

Posted on 2011-10-01
3
Medium Priority
?
277 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 2000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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…

730 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