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

Your preferred username that is used when logging in.

Wrong/buggy Tooltip behavior Created Jun 6, 2009

This thread is solved

Views: 3899     Replies: 6     Last reply Jun 7, 2009  
You must login first before you can use this feature

Archon810

Posts: 5

Registered:
Jun 4, 2009

Wrong/buggy Tooltip behavior

Posted: Jun 6, 2009

I really like what you have done with this set of tools and I'm here to report a few bugs with the Tooltip.

1. If an <input> is surrounded by <p>, the behavior becomes completely broken and unreliable. The box jumps around and disappears sometimes over at 1000+px but in a visible state. Sometimes it jumps back to where it's supposed to. Also, the tooltip shows up on hover rather than on click. See the first part of the code below.

2. A <label> that wraps around <input> has the same wrong hover behavior as #1. However, it is a valid syntax to wrap <label> around <input> like that, as specified herehttp://www.w3.org/TR/html401/interact/forms.html#h-17.9.1. It is actually more useful as it passes focus down to <input> upon click. "When a LABEL element receives focus, it passes the focus on to its associated control. See the section below on access keys for examples."


<form action="" method="post">
	<p>Test input:<input value="10" size="5" /></p>
	<div class="tooltip">Test</div>

	<label>Test input2:<input value="10" size="5" /></label>
	<div class="tooltip">Test2</div>
</form>

That's it for now. I hope you can reproduce these bugs. Btw, I'm using FF 3.0.10 on Windows.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Wrong/buggy Tooltip behavior

Posted: Jun 6, 2009

Reply to: Wrong/buggy Tooltip behavior, from Archon810
thanks. this is now added on my list of bugs. planning to release 1.0.1 next week.

Archon810

Posts: 5

Registered:
Jun 4, 2009

» » Wrong/buggy Tooltip behavior

Posted: Jun 6, 2009

Reply to: » Wrong/buggy Tooltip behavior, from tipiirai
Awesome. I'm using your tools in an upcoming Wordpress plugin - works great :) Thanks again. By the time it's released, you will have fixed all the bugs (most likely).

Also, you misspelled "exception" in your header comment "Video is the only exeption."

And finally, what is up with this awesome forum? I can't find any attribution? Is this something you've developed in-house?

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » Wrong/buggy Tooltip behavior

Posted: Jun 6, 2009

Reply to: » » Wrong/buggy Tooltip behavior, from Archon810
nice to hear. hopefully 1.0.1 will be highly stable. but in this amount of time all bugs just cannot be found.

nice to see someone looking at the source code and spotting spelling mistakes there! and yes. it is now fixed.

I developed this forum myself. Both client and server side (Java). Took 1-2 weeks.

Archon810

Posts: 5

Registered:
Jun 4, 2009

» » » » Wrong/buggy Tooltip behavior

Posted: Jun 6, 2009

Reply to: » » » Wrong/buggy Tooltip behavior, from tipiirai
That is stunningly impressive! Love the forum. You should open source it and release in addition to the tools and player. At least add some attribution so people can give you credit when they see it.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » » » Wrong/buggy Tooltip behavior

Posted: Jun 6, 2009

Reply to: » » » » Wrong/buggy Tooltip behavior, from Archon810
great. thanks. I changed the comment line on the sources a bit. maybe increasing the "guru factor" a bit. hehe.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Wrong/buggy Tooltip behavior

Posted: Jun 7, 2009

Reply to: Wrong/buggy Tooltip behavior, from Archon810
In current version the default behaviour is to place the tip right after the trigger element for example like this:


<label>
  Test input2:<input value="10" size="5" />
  <div class="tooltip">Test2</div> 
</label> 

that should work. however this is not valid HTML since label is not a block level element. so I have to do something for the code to handle this kind of situations.