Here is the error i get
Line: 78
Char: 150
Code: 0
error message: '0.x' is null or not an object
URL: http://www.mysite.com/sites/all/modules/beautytips/js/jquery.bt.min.js?vit came from the function drawIt in jquery.bt.js
function drawIt(points, strokeWidth) {
this.moveTo(points[0].x, points[0].y); // here the error i don't know why
for (i=1;i<points.length;i++) {
if (points[i-1].type == 'arcStart') {
// if we're creating a rounded corner
//ctx.arc(round5(points[i].x), round5(points[i].y), points[i].startAngle, points[i].endAngle, opts.cornerRadius, false);
this.quadraticCurveTo(round5(points[i].x, strokeWidth), round5(points[i].y, strokeWidth), round5(points[(i+1)%points.length].x, strokeWidth), round5(points[(i+1)%points.length].y, strokeWidth));
i++;
//ctx.moveTo(round5(points[i].x), round5(points[i].y));
}
else {
this.lineTo(round5(points[i].x, strokeWidth), round5(points[i].y, strokeWidth));
}
}
};it only appears when i set only one position for the tip (i.e "bottom") in the BeautyTips Manager.
There's no bug with safari, firefox or chrome, in these navigators, the tips shows itself on bottom.
But with ie8 or ie9, the tip does not show itself, and i have this bug. If i set all positions with bottom on first it works but the tip shows itself on the left or on the right. But i would like to make it shows on bottom :)
i don't know if i've been clear enough. I've googled this bug, but no reference anywhere.
I guess IE consider that there 's not enough available space on the bottom of my trigger element, but i just want the tip to appear an cover what's under... and that's working well in other navigators when i set only one position.
Comments
Comment #1
Olivier.b commentedThis fix worked for me : http://plugins.jquery.com/content/position-bottom-nan-bug
make the change in the jquery.bt.min.js file.
Comment #3
giorgoskmarking as open
fix above did not work for me
Comment #4
rjl commentedI too am getting an error in IE8. If i comment out excanvas.js, there is no error, but of course the beautytip doesn't work in IE without it. I will look into excanvas and report back.
Reporting back....
In excanvas.js about line 110
the doc.createStyleSheet(); was failing in IE8 due to the limit on the number of style sheets it will load (i believe it is 31).
In my development environment I do not have my style sheets optimized and the call to doc.createStyleSheet(); i believe, put me over the arbitrary limit in IE. When i optimized the style sheets, the error went away.
I will provide a link to the MSDN page (but it's only a matter of time before Bill changes that too)
http://msdn.microsoft.com/en-us/library/ms531194(v=vs.85).aspx
Comment #5
kleinmp commentedI can't seem to reproduce the bug. Could some post the settings that they placed into the manager that are causing this issue?
I tried doing it with only bottom position checked, but it was working correctly for me.
Comment #6
2ndmile commentedThanks rjl... too many style sheets here too. Turned on optimization and errors went away. I wonder how many hours IE has wasted for devs?
Comment #7
kleinmp commentedIt looks like the bug reported in the original issue is different than what other people here are reporting. In order to really debug we'll need to get more info about how and where the beautytips is being applied.
Comment #8
gillarf commentedThanks rjl - solved my problem.
Note to self - use fewer than 31 style sheets...
Comment #9
jegan2668 commentedHi,
I am receiving following message in IE 7 and 8. Beauty tip top working in the particular form in ie7&8.
It shows the following error message.
Message: Unable to get value of the property 'options': object is null or undefined
Line: 7
Char: 3
Code: 0
URI: /sites/all/modules/beautytips/js/beautytips.js?G
Any suggestions?
Comment #10
pifagor