Well, I don't know if this is the best way of doing it (avoiding the qtip caching would be much easier in my opinion) but this is how I solved my issue, in case someone finds it useful:
In the text option of the qtip, just leave a
Loading...
text, nofunction()
Use the 'show' event to load the content of the qtip, grabing the ID of the div that holds the content and passing it to a custom function
events: { show: function(event, api) { var qtip_id = api.elements.content.attr('id'); loadtQtipContent(qtip_id); } }
This is the function that loads the content via ajax:
function loadtQtipContent(qtip_id) { $('#' + qtip_id).empty(); //Empty the content before executing every request $.get('/my/url', function(data) { $('#' + qtip_id).html(data); }); }
That's it!