1

I am getting "JQUERY undefined" error. Do you have any idea (code below).

<%@ Page Language="C#" AutoEventWireup="true" Inherits="faturaYazici2" CodeBehind="faturaYazici2.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="JS/reset-fonts-grids.css" rel="stylesheet" type="text/css" />
<script src="JS/boxy/jquery.boxy.js" type="text/javascript"></script>
<script src="JS/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
 $(document).ready(function() {
 window.print();
 });
</script>
........
...........
asked May 17, 2009 at 23:24

3 Answers 3

5

You are referencing the Boxy plugin before jQuery. Re-order your script tags like this:

<script src="JS/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="JS/boxy/jquery.boxy.js" type="text/javascript"></script>
answered May 17, 2009 at 23:32
Sign up to request clarification or add additional context in comments.

Comments

0

Is your jQuery script

<script src="JS/jquery-1.3.2.min.js" type="text/javascript"></script>

loading successfully?

Try replacing it with

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

(loading jQuery from Google's web site) and see if that works.

answered May 17, 2009 at 23:25

Comments

0

Is security enabled in your Asp.Net application. Mine was. Beacuse of it, jquery file cannot be loaded. Add below lines to your web.config:

<location path="JS">
 <system.web>
 <authorization>
 <allow users="*" />
 </authorization>
 </system.web>
</location>
LPL
17.1k6 gold badges55 silver badges98 bronze badges
answered Aug 20, 2009 at 22:56

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.