Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nested qtip or a qtip inside another qtip
18th November, 15:28
Post: #1
nested qtip or a qtip inside another qtip
I need o display a unordered list inside a qtip and then every item inside the unordered list must show another qtip with the description of the item, can anyone show me some qtip inside another qtip example, I just don't get it from the demo.. please help me!!!
Find all posts by this user
Quote this message in a reply
23rd November, 16:05
Post: #2
nested qtip or a qtip inside another qtip
Hi uberman, what you need for this is pretty simple. You basically need two qTip calls, except one of them is nexted within the onRender API callback of the other, like this:

JS Code
$('.selector').qtip({
   content: '<ul></ul>', // UL List in first tooltip
   api: {
      onRender: function(){
         // Second qTip call which searches for li items within the first tooltips content
         this.elements.content.find('li').qtip({
            content: 'LI Description'
         });
      }
   }
});


Hope this helps!

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
11th July, 02:52
Post: #3
RE: nested qtip or a qtip inside another qtip
I am trying to accomplish something similar, but am having difficulty accessing the API (total greenhorn here).

The first round of tooltips are working, but I'm trying to have a submenu that can be accessed via tooltip in the primary tips.

Here is the code I'm appending to the JS in the index.html:
JS Code
var api = $('.tabdiv a[rel]').qtip("api"); // Access the API via the tooltip
	$('.democontent a[rel]').qtip({
	   content: '<ul></ul>', // UL List in first tooltip
	   api: {
		  onRender: function(){
			 // Second qTip call which searches for li items within the first tooltips content
			 this.elements.content.find('li').qtip({
				content: {
				url: $(this).attr('rel'), // Use the rel attribute of each element for the url to load
				}
			});
 	  	}
	}
});


Please help!
Find all posts by this user
Quote this message in a reply
12th July, 13:36
Post: #4
RE: nested qtip or a qtip inside another qtip
logan, is the 'rel' attribute your trying to access of the orginal tooltip or the original element (.democontent a[rel])? If the latter you'll need to do this insteasd

JS Code
url: this.elements.target.attr('rel') // Use the rel attribute of each element for the url to load

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
20th July, 18:12
Post: #5
RE: nested qtip or a qtip inside another qtip
Hi Craig,

Thank you for responding. What we are trying to accomplish is essentially creating an "RIT" or rich interactive tooltip. If you can imagine a tooltip within which you can have a facebook wall conversation. So inside the tooltip would be details about a keyword item (not unlike your ajax image demo's with the owls). You would therein be able to respond to the item ala' facebook-like newsfeed replys. So we need to incorporate a form-like tooltip prompt within the qtip that can be activated by clicking "reply". The comments made within this form and smart info about the posting member would update the corresponding item information in the DB, allowing it to be interacted with by others in the same manner.

I'm not sure my code is getting that across. If you have some spare time, we can discuss how we might repay you if you could consult us on this feature.

Kind regards,

Logan

btw, thank you for your generosity. qTip is amazing!
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  qTip and Dynatree lucky13 1 107 23rd April 14:01
Last Post: Craig
  Open a modal popup window from a click inside qtip poojakudesia 1 1,147 10th August 19:32
Last Post: Craig
  jumpy qTip susan 3 1,137 12th January 22:07
Last Post: Craig
  qTip 1.0.0-rc3 & jQuery 1.4 Yeti 5 8,299 25th August 10:54
Last Post: interpotential
  Non-profit needs help formatting qtip djmoda 4 991 24th August 13:11
Last Post: djmoda
  [Solved] Best way to hide Qtip when other Qtip opens up wpgeek 1 1,717 10th May 11:06
Last Post: Craig
  close modal dialog from inside the content siriusblack 3 2,508 21st April 17:57
Last Post: Craig
  qTip footnotes pvetch 2 1,282 17th April 15:18
Last Post: pvetch
  qTip drop shadows babupca 4 5,421 26th February 06:28
Last Post: james121
  Make qTip draggable Hesostein 1 1,072 8th February 18:17
Last Post: Craig



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