mysterious javascript error with django

I am including jquery in my template like so:

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

After doing this,I add this form to my page:

<form method="POST">
Quantity: <input type="text" name="quantity" /><br />
<input type="submit" value="Add To Cart"/>
</form>

My console then outputs the error:

Uncaught TypeError: Object #<Object> has no method 'canPushDown'

The interesting thing is if I change the submit value to:

value="Add To Car"

The error disappears! Further more, If I add an extra t to the value:

value="Add To Cartt"

The error returns.

Here is my entire template:

<!DOCTYPE html>
<html>

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

<body>

<form method="POST">
Quantity: <input type="text" name="quantity" /><br />
<input type="submit" value="Add To Cart"/>
</form>

</body>

</html>

I've confirmed this behavior is only occurring with the above html for django templates. Anyone have a hunch for what may be going on?

Answers


I was able to get this to go away by disabling Amazon Universal Wishlist in Chrome Extensions


Need Your Help

Google Chrome Developer Tools shows my files twice. One can be edited, the other can be debugged

google-chrome-devtools

I am developing a single page website using Visual Studio. During development I am using Google Chrome Developer Tools to debug but I was also able to change the files in Chrome. Also my changes were

UDP Multicast with Java: Message cannot be received by entire multicast group

java sockets udp multicast multicastsocket

I am trying to understand how multicast works, thus I am experimenting with it a bit.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.