-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 3 broke my demo! #99
Comments
Hello again sparky672, Thank you for trying out 3.0 and reporting ! I'd rather say the plugin now works as expected, whereas it previously did not. When you update your content, that is when you make a call to the As for other new issues, please share them with us, I'd be happy to investigate. To all readers : version 3.0 does contain improvements and fixes that may cause "breaking changes" to some use cases, make sure you read #98. |
And to improve the disappearance of the tooltip, I gave you the solution last time : do not update the content with an empty string, rather call the |
Quote @louisameline: "I gave you the solution last time : do not update the content with an empty string, rather call the Not really sure what you're talking about. What "last time" with an "empty string"? Both of my jsFiddles already use the Quote @louisameline: "I'd rather say the plugin now works as expected, whereas it previously did not." Anyway, this is quite a conundrum now, since the jQuery Validate plugin is very popular and many people have been asking about using tooltips with it over on Stack Overflow. It already works with qTip2, although the qTip plugin has complex CSS issues, so I've been redirecting people to my solution using Tooltipster 2.1 which I find easier to use and more visually appealing. Despite Tooltipster 3.0 now working "as expected", I see no other method for fully integrating it with the jQuery Validate plugin. The available callback functions fire on every keystroke by default. Disabling the I've investigated other available callback methods like Are you interested in working with me on this? I'm not the developer of jQuery Validate plugin so I doubt we can expect to see any changes to that. However, I am the top user for the jQuery Validate plugin on Stack Overflow with nearly 700 answers so being able to get this working seems to be to your advantage as well as mine.
I'll tinker around a little with this more today and let you know if I find anything useful. Thank-you! |
I should have looked closer at the available Tooltipster options. It seems that the See: http://jsfiddle.net/2DUX2/2/ Can't the plugin simply check to see if the new incoming content is different than the existing content before triggering the animation on content update? I can also see this being useful for scenarios with other plugins, not just with jQuery Validate |
Oh sorry, someone asked a very similar question about jQuery Validate a few days ago, I thought it was you. Actually it was Alesnav : #82 There is nothing wrong with using jQuery Validate with Tooltipster 3.0, it's just that your snippet to make them work together should not make unnecessary calls to Tooltipster. Try this : http://jsfiddle.net/2DUX2/3/ If you are not happy with the animation between the "This field is required" and "Please enter a valid address" messages, you'll have to bind on the blur events of the element, or just disable the animation. Nothing wrong with Tooltipster anyway. The As for your last question about checking if the content is identical to play an animation or not : we won't, because
|
That is a beautiful solution. Thank-you! I will update my Stack Overflow answers accordingly. |
You're very welcome. |
Hi Caleb,
I figured I'd try version 3.0 of your plugin with jQuery Validate. Unfortunately, it's not working very well. Open the jsFiddle and immediately hit the submit button in the two test cases below to see the differences/problems.
Version 2.1 is working well: http://jsfiddle.net/2DUX2
With version 2.1, the tooltips update themselves without any flicker. Validation is triggered on every keyup but the tooltips remain solid.
Version 3.0 is not so good: http://jsfiddle.net/2DUX2/1/
With version 3.0, the tooltips flicker and flash when updating. With this, you can see the tooltip fade out/in on every keystroke.
As you can see I, even tried the new
.tooltipster('content' ...
method with the same result.There are other new issues but those I only noticed in an older version of Firefox, so far.
Thank-you!
The text was updated successfully, but these errors were encountered: