Quote:
Originally Posted by DanInMa
you want somethign like this: ( using 1.7+)
Code:
$('a.glossaryLink').on("hover", function(e){
onRollOverPULink();
});
no need for the return false on a hover
|
Why is this still not working correctly? In IE I get 2 alerts each time I hover. In FF I don't get any.
This div is populated using JS.
Code:
<div id="containerContainer">
<!--[if IE 6]><br/><br/><![endif]-->
<div id="contentContainer"></div>
<div id="flow"></div>
</div>
This is the HTML content that is added to the div above.
Code:
<ul>
<li>
(U) Spiral 1.5: <a class="glossaryLink" href="#">SCCVI</a> and <a class="glossaryLink" href="#">SCRI</a> </li>
<li> (U) Spiral 2: <a class="glossaryLink" href="#">HBSS</a> </li>
</ul>
THis is the JS function that loads the html content.
Code:
function loadDivHTML(div_id, content_src)
{
$("#" + div_id).load(content_src, bookmark);
setGlossLinkListeners(); //Each time new content is loaded this function sets listeners on PU links.
}
Code:
function setGlossLinkListeners()
{
$('#contentContainer a.glossaryLink').on('hover', function(){
onRollOverPULink();
});
}
function onRollOverPULink() //e, txt
{
alert("onRollOverPULink");
}