Hi Dan,

I'm not sure why you need an ajax function, but here is how you can grab the content of the hovered label and drop it into a hidden div:

    $('label').cluetip({
      local: true,
      onActivate: function(e) {
        $('#hidden').html( e.text() );
        return e;
      }
    });

Hopefully you can figure out whatever else you need to do. If not, you'll need to provide more explanation, because I'm kind of slow.

Anyway, I put a demo page up for you here:

http://test.learningjquery.com/clue/demo/danm.html

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Dec 2, 2007, at 12:14 PM, Dan M wrote:


Right, but I'm not using another page... I want to use a local div...
I'm trying to get it working like this:
1. User hovers over label next to input box.
2. clueTip calls my ajax function (either via the onActivate or
ajaxProcess options) passing the mouseover event that triggered
clueTip.
3. My ajax function uses the e.target to get the content for that labe/
input and returns that content into a hidden div on the page.
4. clueTip displays the div content.

Is this possible?

Dan

On Dec 2, 6:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
As documented, by default it uses the rel="Attribute.html".
Regards

On 2 Dez., 02:31, Dan M <[EMAIL PROTECTED]> wrote:

All,

If I'm using an ajax solution with clueTip, how can I pass in the
target element so that I can generate dynamic content based on the
element being hovered over?

Dan

Reply via email to