Hola amigo, estoy intentado crear un qtip al clickar en unos td que pertenecen a la clase toolTipGrafico, cada una con su id. Y quiero pasarle esa id al qtip para hacer los cálculos correspondientes. Por ahora esto es lo que tengo, que no me coge la id...., haber si se os ocurre algo a vosotros.
Código Javascript
:
Ver original$(".toolTipGrafico").each(function(){
var id = $(this).id;
$(this).qtip({
content: {
// Set the text to an image HTML string with the correct src URL to the loading image you want to use
text: 'nada',
ajax: {
url:'/serviceFactoryManager/qtipEvolucion.action?datos='+id // Use the rel attribute of each element for the url to load
},
title: {
text: 'Evolución del Indicador', // Give the tooltip a title using each elements text
}
},
position: {
at: 'bottom center', // Position the tooltip above the link
my: 'top center',
viewport: $(window), // Keep the tooltip on-screen at all times
effect: false // Disable positioning animation
},
show: {
event: 'click',
solo: true // Only show one tooltip at a time
},
//hide: 'unfocus',
style: {
classes: 'qtip-wiki qtip-light qtip-shadow'
}
});
});
Y los td tienen esta pinta:
Código HTML:
Ver original<td id="Kpi_final-${itemOM.tbProfesionalIdProfesional}-2013-3" class="toolTipGrafico">${itemOM.kpiFinal}
</td>
Gracias de antemano