views:

691

answers:

3
+1  Q: 

JQUERY undefined

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"&gt;
<html xmlns="http://www.w3.org/1999/xhtml"&gt;
<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>
........
...........
A: 

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"&gt;&lt;/script&gt;

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

Dan Breslau
+6  A: 

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>
Ayman Hourieh
Better answer than mine +1
Jose Basilio
Yes best answer... THANK YOU ALL...
uzay95
A: 

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

Atilla Ozgur