You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Loading dynamic content in tooltip Created Feb 18, 2010

This thread is solved

Views: 1836     Replies: 1     Last reply Feb 25, 2010  
You must login first before you can use this feature

antiheld2000

Posts: 3

Registered:
Dec 29, 2009

Loading dynamic content in tooltip

Posted: Feb 18, 2010

I am trying to load external content in the tooltip. But it does not work. Does anybody see the error or is it impossible to load dynamic content in the tooltip?

trigger:
<a-tag id="download_now" title="System tooltip for search engines" href="test.htm">Download now

<div class="tooltip">
<div class="contentWrap"></div>
</div>

call:
$(document).ready(function() { 
    $("#download_now").tooltip({
			effect: 'slide'
		,	onBeforeShow: function() {
			var wrap = this.getContent().find(".contentWrap");
			wrap.load(this.getTrigger().attr("href"));
		}
	});  

jpsimmons

Posts: 9

Registered:
Feb 25, 2010

» Loading dynamic content in tooltip

Posted: Feb 25, 2010

Reply to: Loading dynamic content in tooltip, from antiheld2000
The demo for this one is actually wrong.

Since you provided a title on your trigger element, the tooltip plugin will replace the contents of tooltip with your title.

So ...


<div class="tooltip">
   <div class="contentWrap">
   </div>
</div>

becomes


<div class="tooltip">
     System tooltip for search engines
</div>

Therefore your wrap call is failing

Btw.. you should use this.getTip() instead of this.getContent() in your onBeforeShow call as this.getContent() doesn't exist