Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loading Multiple qTip2 Scripts on the Same Page
15th December, 22:46
Post: #1
Loading Multiple qTip2 Scripts on the Same Page
Hi,

First off, this is an amazing piece of software and thank you Craig for making it!

For an application I'm doing, users will be placing a piece of code we give them on their sites. Within this piece of code, jQuery and qTip2 will be loaded and used. It's possible that the sites that this code is placed on will already have the qTip2 script loaded.

Is there a way to load multiple versions of qTip2 and change everything over to a different alias, much like jQuery does with the noConflict() function?

I just realized however that I will be loading jQuery on these pages using noConflict() and hence changing the alias for the version of jQuery I load to something unique - if I load the qTip2 before calling noConflict(), would that then also make the qTip2 version I load unique to my version of jQuery?

If the above is the case, I can see there being an issue still with the CSS (if the actual CSS differs), however I believe this could be added and removed dynamically via JavaScript before and after our application is used and I think that by removing it, that would just cause it to revert back to their CSS.

I appreciate any help and qTip2 is the best!
Find all posts by this user
Quote this message in a reply
18th December, 20:56
Post: #2
RE: Loading Multiple qTip2 Scripts on the Same Page
Unfortunately not, as this is a definite edge case. qTip2 passes along the jQuery variable to the library when it's included, so the jQuery version that is currently assigned to the "jQuery" variable will be the one qTip2 uses. Also, when qTip2 is included twice, it simply overrides the previous instance.

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
  qTip2 and Wordpress integration Tutorial newbie2012 0 181 17th April 03:35
Last Post: newbie2012
  [Solved] HTML for attaching qTip2 to <a> tag? paigepauli 2 277 26th March 22:12
Last Post: paigepauli
  Wordpress- qtip2-newbie proch 3 1,647 6th January 16:02
Last Post: jmillspaysbills
  [Solved] Dynamically disable/enable tips on the same trigger without refreshing page dvieira 1 710 27th October 18:01
Last Post: Craig
  [Solved] How to set the "z-index" in qtip2? kmvan 5 1,127 21st October 19:11
Last Post: Craig
  [Solved] How to set qtip2 to center of screen? kmvan 4 1,092 12th October 03:18
Last Post: kmvan
  qtip with simple html page illusion4000 2 1,498 6th October 01:42
Last Post: kmvan
  [Solved] How to set qtip2 to Full Screen? kmvan 3 870 28th September 00:57
Last Post: kmvan
  List of qTip2 Implementation Samples kiddailey 4 5,336 10th August 08:08
Last Post: ajkochanowicz



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