Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
Find all posts by this user
Quote this message in a reply
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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Multiple qtips on one page, content disappearing russau 3 107 3rd May 16:38
Last Post: Craig
  can't hide qtip in a “position: absolute;” div shdog 1 267 14th March 17:35
Last Post: Craig
  [Solved] One Target Multiple Tool Tips rd42 1 261 19th February 18:24
Last Post: rd42
  Position of qTip Modal from call within a tooltip chuuke 1 259 17th January 21:54
Last Post: Craig
  show qtip in a specified div or position myapweb 1 572 27th December 17:53
Last Post: Craig
  Create tooltip for selected text claudia.guerrero 2 519 10th November 03:55
Last Post: rolina
  [Solved] qTip image map multiple triggers for one tip nico 4 938 3rd August 05:43
Last Post: nico
  [Solved] Using same tooltip object for multiple elements rextheranter 3 787 1st August 15:26
Last Post: Craig
  [Solved] multiple qtips and 1.4.2 - popup not being removed michaelg 9 2,623 11th May 13:57
Last Post: cooldeeps
  [Solved] Multiple image maps, different tooltips glennp 1 1,497 21st April 16:32
Last Post: tafs7



User(s) browsing this thread: 1 Guest(s)