views:

34

answers:

1

I'm using a jQuery plugin called qTip (http://craigsworks.com/projects/qtip/docs/api/#callbacks) and trying to implement a callback function for dynamically loaded data.

Here's what I have:

$('#orders_table a').qtip('api').onRender(function(){
        alert('test');
 })

The qTip is being initialized for all of the links within the #orders_table.

Nothing happens however, when I load a qTip - It loads, but no alert.

Any ideas?

Thanks!

+1  A: 

What if you do it like this:

$('#orders_table a').qtip({
    api: {
        onRender:function() {
           alert('test');
        }
    }
});
Gregg