thanks for the response, I'm not sure how I can use live()
Here is a snippit of the javascript in question.


<div id="tweets"></div>
<div id="static"><a href="#" title="this is the tooltip text">test</
a></div>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="/includes/js/
jquery.easyTooltip.js"></script>
<script type="text/javascript"><!--

function ajax_request(element,url) {
  $('#'+element).html('<span id="loading">loading...</span>');
  $('#'+element).load(url);
}

$(document).ready(function() {
        ajax_request('tweets', '/includes/tweets.php?type=all&mp=1');
        $("a,img").easyTooltip();
});


the tooltip for the link in the "static" div works fine. But links
that are displayed via the ajax_request in the "tweets" div have no
tooltip.

On Sep 9, 6:11 am, Alex Weber <alexwebe...@gmail.com> wrote:
> I'm not sure I understand completely, if you mean that thetooltip
> doesnt work with elements dynamically generated via load(), then it
> could be a binding issue... try binding an alert() and see if that
> works.  in case it doesn't its because when the event was bound the
> elements didn't exist... the solution is to use live():
>
> $('.tooltipElement').live(......)
>
> On Sep 9, 1:46 am, Canadaka <canad...@gmail.com> wrote:
>
> > I have some simple tooltips on my site that load the content of the
> > "title" tag into thetooltip. I am currently using this 
> > pluginhttp://cssglobe.com/post/4380/easy-tooltip--jquery-pluginbutI have
> > tried several others.
>
> > They all work fine for static elements, but the main content of my
> > pages are loaded by an ajax load() call. The tooltips don't work on
> > any this content loaded via ajax. Why is this happening and is there a
> > way to fix this? Or maybe atooltipplugin that will work for this?

Reply via email to