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?v

it 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

Olivier.b’s picture

Status: Active » Fixed

This fix worked for me : http://plugins.jquery.com/content/position-bottom-nan-bug

make the change in the jquery.bt.min.js file.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

giorgosk’s picture

Status: Closed (fixed) » Active

marking as open
fix above did not work for me

rjl’s picture

I 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

      // Setup default CSS.  Only add one style sheet per document
      if (!doc.styleSheets['ex_canvas_']) {
        var ss = doc.createStyleSheet();
        ss.owningElement.id = 'ex_canvas_';

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

<rant>I am so sick of the the time I waste on IE fixes</rant>
kleinmp’s picture

I 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.

2ndmile’s picture

Thanks rjl... too many style sheets here too. Turned on optimization and errors went away. I wonder how many hours IE has wasted for devs?

kleinmp’s picture

Status: Active » Postponed (maintainer needs more info)

It 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.

gillarf’s picture

Thanks rjl - solved my problem.

Note to self - use fewer than 31 style sheets...

jegan2668’s picture

Hi,

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?

pifagor’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)