I am encountering an issue with incorporating tips into a Request.HTML function. I have a div that updates its content every 30 seconds. The returned content consists of multiple divs with the class ".liveReader".
Below is the JavaScript code used to initialize the content:
window.addEvent('domready', initLiveContent);
function initLiveContent()
{
var tips = new Tips('.liveReader');
(function() { refreshPanel() }).periodical(30000);
refreshPanel();
}
function refreshPanel()
{
var myRequest = new Request.HTML({
url: '/inc/liveFeed.aspx',
update: $('liveContent'),
method: 'get',
onComplete: function() {
tips.attach('.liveReader');
}
});
myRequest.send();
}
The corresponding HTML structure is as follows:
<div id="liveContent">
<div id="item1" class="liveReader" title="item 1"><p>Text 1</p></div>
<div id="item2" class="liveReader" title="item 2"><p>Text 2</p></div>
</div>
However, I am only able to see the default tooltip title! Any suggestions on how to resolve this issue?