Skip to main content

Bug Tracker

Side navigation

Ticket #2846: jQonCompleteBug.html

File jQonCompleteBug.html, 1.1 KB (added by zbuffered, May 12, 2008 05:21PM UTC)

simple page showing a Firefox 2 bug in jQuery's animation oncomplete

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<title>Testing jQuery's animation onComplete</title>
<script src="/fr/new/js/jquery-1.2.1.min.js"></script>
	divHeight = $("div").height();
	numberOfTries = 5;
	 $("#animator").one('click', function(){
			overflow: 'hidden',
			height: '0px',
			visibility: 'visible'
			(function() {
				if(numberOfTries) {
<a id="animator" style="text-decoration: underline; color: blue; cursor: pointer;">I SHOW YOU SECRETS</a>
<p>secret stuff below</p>
<div style="visibility: hidden;">I am the secret information<br />you are dying to get your hands on!<br />using Firefox? you may have to restart your browser now<br />look at the code to see why--badFunc() is being repeatedly called! <br />the alert() is needed to keep your CPU utilization down!</div>

Download in other formats:

Original Format