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

Your preferred username that is used when logging in.

two functions in one Created Nov 10, 2009

This thread is solved

Views: 504     Replies: 1     Last reply Nov 10, 2009  
You must login first before you can use this feature

crocodile

Posts: 2

Registered:
Nov 10, 2009

two functions in one

Posted: Nov 10, 2009

Hello,

I am designing a website, and I just inserted the vertical scrollable function. Each item of the scrollable contains code like:


<span>hello</span>
<span><a href="go.html" title="here we go">let's go</a></span>

I now want to insert the tooltip function so that within the scrollable function, the tooltip appears on the links.

both of them work separatly, but when I inlude one in the other or the other in one, the tooltip doesn't function anymore.

I have tried something like:


<div class="scrollable vertical">
	<div id="idToolTipItems">
		 <div id="idDivResults" > 
                      <span>hello</span>
                      <span><a href="go.html" title="here we go">let's go</a></span>

		</div>				
	</div>
</div>

<div id="idToolTip"> </div>
<script>

$(document).ready(function() {
	$("#idToolTipItems a[title]").tooltip('#idToolTip');
});


but it doesn't work ...
Is there any tip somewhere that I don't know ?

Thanks for your help

crocodile

Posts: 2

Registered:
Nov 10, 2009

» two functions in one

Posted: Nov 10, 2009

Reply to: two functions in one, from crocodile
Hello,

After investigation, I feel like I update the DOM and the tooltip is not updated for the new elements of the DOM.

Has someone an idea how to reload the function so that it applies to these new DOM elements ?

Thanks