Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Tipped with checkboxes

I'm trying to get tipped to work when hovering over a checkbox label.
I do have the Pro version v4.5.6
the structure of the checkboxes is in the graphic: http://www.ready4data.com/tipped/snap12.png
I expanded two of the sections so you can see how they are generated.
Layout: http://www.ready4data.com/tipped/snap13.png
The code I'm using is this:
$(document).ready(function(){
window.onmouseover = function(e) {
var elm = e.target;
if (elm.tagName=="TD" && elm.firstElementChild.firstChild.id.match(/sv_WeekNumber_/)) {
var tipElement = '.'+elm.firstElementChild.firstElementChild.id;
var weekNumber = elm.innerText;
var reportYear = $('#sv_Year :selected').text();
//console.log(tipElement);
Tipped.create(tipElement, {ajax: {url:'ajaxWeekRange.asp', type:'GET', data:{strYear:reportYear, strWeekNumber:weekNumber}, success:function(msg) {return msg;},
},
showOn: 'click',
hideOthers: true,
fixed: true,
target: 'mouse',
skin: 'gray',
});
Tipped.clearAjaxCache();
}
}
});

The tipElement variable is returning the correct id (Eg .sv_WeekNumber_3 or .sv_WeekNumber_4) when the label is hovered over.
I tried hard coding the HTML element but still no success. I even tried without the ajax call and used a text message. Still no joy.
Given the way the checkboxes are generated, it this even possible with Tipped?
Thanks ,
Scott

Comments

Sign In or Register to comment.