You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

"clean" stand alone forms demo page triggers jquery error in firebug Created Sep 29, 2009

This thread is solved

Views: 4526     Replies: 5     Last reply Jan 19, 2010  
You must login first before you can use this feature

joseph

Posts: 3

Registered:
Sep 29, 2009

"clean" stand alone forms demo page triggers jquery error in firebug

Posted: Sep 29, 2009

Hi

This post is somewhat related to this one.

In fact, after cleaning up a bit (see below for details of the page source), I've the following error in firebug, on jquery.js v1.3.2 on line 2447 of the unminimized source :
if ( !handler.guid )
firebug tells me "handler is undefined"
This happens everytime I hover some tooltip enabled components, making it quite annoying...

Any hint welcome !

++
joseph

nb : here is my "clean" standalone demo page :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
	<!-- The recommended practice is to load jQuery from Google's CDN service.  --> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"></script> 
 
<!-- Tabs, Tooltip, Scrollable, Overlay, Expose. No jQuery. --> 
<script src="http://cdn.jquerytools.org/1.1.1/tiny/jquery.tools.min.js"></script>

<!-- DOCTYPE is always recommended. see: http://www.quirksmode.org/css/quirksmode.html -->

<!--
	This is the jQuery Tools standalone demo, the fastest way to get started.
	You can freely copy things on your site. All demos can be found here:

	http://flowplayer.org/tools/demos/

	- css files should not be referenced from flowplayer.org when in production
	
	Enjoy!
-->

<!-- standalone page styling -->
<style>
body {
	padding:150px 50px;
	font-family:"Lucida Grande","Lucida Sans Unicode","bitstream vera sans","trebuchet ms",verdana;
}

/* get rid of those system borders being generated for A tags */
a:active {
  outline:none;
}

:focus {
  -moz-outline-style:none;
}
</style>
<!-- javascript coding -->
<script>
// execute your scripts when the DOM is ready. this is a good habit
$(function() {

// select all desired input fields and attach tooltips to them
$("#myform :input").tooltip({

	// place tooltip on the right edge
	position: "center right",

	// a little tweaking of the position
	offset: [-2, 10],

	// use the built-in fadeIn/fadeOut effect
	effect: "fade",

	// custom opacity setting
	opacity: 0.7,

	// use this single tooltip element
	tip: '.tooltip'

});
});
</script>
</head>
<!-- without body tag IE may have unprodictable behaviours --> 
<body>

<!-- tooltip styling -->
<link rel="stylesheet" type="text/css" href="http://static.flowplayer.org/tools/css/tooltip-generic.css"/>

<style>
#myform {
	border:1px outset #ccc;
	background:#fff url(http://static.flowplayer.org/img/global/gradient/h600.png) repeat-x;
	padding:20px;
	margin:20px 0;
	width:350px;
	-moz-border-radius:4px;
}

#myform h3 {
	text-align:center;
	margin:0 0 10px 0;
}

/* http://www.quirksmode.org/css/forms.html */
#inputs label, #inputs input, #inputs textarea, #inputs select {
	display: block;
	width: 150px;
	float: left;
	margin-bottom: 20px;
}

#inputs label {
	text-align: right;
	width: 75px;
	padding-right: 20px;
}

#inputs br {
	clear: left;
}
</style>

<div class="tooltip"></div>

<form id="myform" action="#">

	<h3>Registration Form</h3>

	<div id="inputs">

		<!-- username -->
		<label for="username">Username</label>

		<input id="username" title="Must be at least 8 characters."/><br />

		<!-- password -->
		<label for="password">Password</label>
		<input id="password" type="password" title="Try to make it hard to guess." /><br />

		<!-- email -->
		<label for="email">Email</label>
		<input id="email" title="We won't send you any marketing material." /><br />

		<!-- message -->
		<label for="body">Message</label>
		<textarea id="body" title="What's on your mind?"></textarea><br />

		<!-- message -->
		<label for="where">Select one</label>
		<select id="where" title="Select one of these options">

			<option>-- first option --</option>
			<option>-- second option --</option>
			<option>-- third option --</option>
		</select>
		<br />
	</div>

	<!-- email -->

	<label>
		I accept the terms and conditions
		<input type="checkbox" id="check" title="Required to proceed" />
	</label>

	<p>
		<button type="button" title="This button won't do anything">Proceed</button>
	</p>

</form>

</body></html>


Zappo

Posts: 3

Registered:
Oct 30, 2009

» Not your fault!

Posted: Oct 30, 2009

Reply to: "clean" stand alone forms demo page triggers jquery error in firebug, from joseph
I believe this is not your fault, but a jQuery Tools bug.
In the jQuery line 2447: if ( !handler.guid )
the handler is not optional.
However, searching through the jQuery tools code (v.1.1.2), the third variable (handler) is not always passed!
(If you firebug the jQuery Tools webpage, the error (because of minimized jQuery it's "H is undefined") shows up all over the place!!!)
Strangely, nothing is mentioned about this (even on the forums!)

lubosdz
The greatest discoveries in 21st century will be made in the area of the gravitation.

Posts: 4

Registered:
Nov 20, 2009

Confirmed - must be some bug there

Posted: Nov 20, 2009

Reply to: » Not your fault!, from Zappo
Hi,

I just downloaded scrollable (full version) and tried to set it up. First I tried direct installation of scrollable directly into a page, but ended up always with "H is undefined". The error actually crashes whole scrollbar functionality. Then I isolated implementation and used strictly "minimal installation" - again the same result.

Error is thrown in file jquery_min.js, which fails to initiate the H object probably not passed by jquery.tools.min.js.

It would be really cool to have it fixed:-))
Anyway thank you guys for great free tool!!
Lubos

**********************************
Oh BTW, I found also this error while typing the message above...

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
Timestamp: Fri, 20 Nov 2009 14:37:58 UTC

Message: Invalid argument.
Line: 49
Char: 35190
Code: 0
URI:http://flowplayer.org/js/tools/1.1.2/all/jquery.tools.min.js?v=1

(arrow keys not working)

jesseko

Posts: 1

Registered:
Nov 24, 2009

2nd Confirmation: Overlay + Firebug is definitely triggering this error

Posted: Nov 24, 2009

Reply to: Confirmed - must be some bug there, from lubosdz
Was getting frustrated with things not working so I threw it all out and tried copying the simplest overlay demo from here:
http://flowplayer.org/tools/demos/overlay/index.htm

still got the error mentioned above

then I found this post and tried disabling firebug. Now it works fine.

Firebug is halting when the script tab is in "Break on all errors" mode, which means that this is probably a legitimate error, but one that browsers can normally continue after. Firebug just alerts us to these.

Would be great if this error could be prevented! Don't know how many visitors to sites using these tools will be browsing with firebug on like this, but it would go a long way towards peace of mind to not have to worry about that.

Flowplayer people, any fixes for this?

Thanks,
Jesse

tinatoerat

Posts: 3

Registered:
Nov 12, 2009

» "clean" stand alone forms demo page triggers jquery error in firebug

Posted: Dec 4, 2009

Reply to: "clean" stand alone forms demo page triggers jquery error in firebug, from joseph
Jesse said
Would be great if this error could be prevented! Don't know how many visitors to sites using these tools will be browsing with firebug on like this, but it would go a long way towards peace of mind to not have to worry about that.

It makes development using these tools difficult if firebug fails with an error unrelated to ones code.

Hwangar

Posts: 1

Registered:
Nov 13, 2009

the same...

Posted: Jan 19, 2010

Reply to: » "clean" stand alone forms demo page triggers jquery error in firebug, from tinatoerat
it happens the same to me... I hope it will be fixed soon. Anyway thanks for this tools!!