|
Efficiency - Should I re-position one qtip or create multiple?
|
|
28th June, 06:27
Post: #1
|
|||
|
|||
|
Efficiency - Should I re-position one qtip or create multiple?
A few small questions here:
I have a form that is used for creating new shots for a show. The number of rows in the form is dependent on how many shots the user needs to create. I have an inputmask on some of the inputs, and would like a tooltip to pop-up when an invalid key is triggered. The tooltip for each row of a specific column will look exactly the same. Should I create a tooltip for each input where an invalid key is entered, or should I create one and re-position it to the active input. In the case of creating a tooltip per-input, is it more efficient to hide/re-show the tooltips if they've already been created for an element, or should I destroy/re-create to keep the DOM clutter low? Also is there a preferred method for checking if a qtip exists on an object and showing it if it does (or does it not need checking, is there a way to call qtip() and have it create if null or show if hidden?)? I've noticed that .data('qtip') will return an object even after that qtip has been destroyed. |
|||
|
4th July, 14:19
Post: #2
|
|||
|
|||
|
RE: Efficiency - Should I re-position one qtip or create multiple?
qTip1 is pretty inefficient, so it's a good question. Honestly I'd suggest simply upgrading to qTip2 and using multiple tooltips as it's much more efficient.
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help




