I get a javascript error in any Explorer version. With any jQuery version.

With Drupal 6.13's provided jQuery: error in line 8 of jquery.bt.min.js, char 643, which is

$(this).attr("bt-xTitle",$(this).attr("title")).attr("title","");}});}

@version 0.9.5-rc1 (5/20/2009)

I guess bT jquery itself isnt working yet. Too bad.

Also when using jQuery Update's module for updating to jQuery 1.2.6 or 1.3.2, then I get errors from jquery.min.js itself! Nasty

Comments

Anonymous’s picture

Now check this out:

      if (opts.killTitle) {
        $(this).find('[title]').andSelf().each(function() {
          if (!$(this).attr('bt-xTitle')) {
//            $(this).attr('bt-xTitle', $(this).attr('title')).attr('title', '');
          }
        });
      }  

Commenting out that line in jquery.bt.js solved the problem for all IE versions.

But now, more WEIRD stuff:

in FireFox 3.5, beautytips removes my html page TITLE! The title shows, bt loads, and then the title is gone, or set to "". You can see the html title appear and disappear. Switching off bt stops that...

BTW, this is how I use beautytips:

			$options['beautytip-15'] = array(
		        'area' => 'img.beautytip-15',
				'positions' => 'top',
'text' => 'Text here',
        		'trigger' => array(0 => 'mouseover', 1 => 'click'),
        		'width' => 350
      		);
			beautytips_add_beautytips($options);
Anonymous’s picture

Adding the javascript inline, like so:

			print '<script type="text/javascript">$(function() {$(\'img.beautytip-'.$c.'\').bt(\''.htmlentities($vdesc[$group][$v], ENT_QUOTES).'\', {trigger: [\'focus mouseover\', \'click\'], positions: \'top\', cssClass: \'tooltip\', fill: \'rgba(255, 255, 255, 1)\', spikeLength: 10, strokeStyle: \'#b32a00\', overlap: 10, btParentNode: \'body\' }); });</script>';

Solved my problem.

Using

			beautytips_add_beautytips($options);

Somehow messes up everything. E.g. the problem lies in the API somewhere.

kleinmp’s picture

Title: IE7-IE8 + jQuery 1.2.x: Object doesn't support this property or method » beautytips removes my html page title

Unforunately, I can't seem to reproduce the page title error using the provided code. If anyone else has this issue, then post you're code too, and I'll see if I can get the error.

I'm going to change the title of this issue to match the last comment, since the initial issue was with the jquery plugin and not the module itself. For future reference, it's best to post those issues to the the project page of the beautytips plugin.

kleinmp’s picture

I think I've found this error is due to adding beautytips to elements with an empty name, though I'm not 100% positive. i.e. something like this is called:

$("").bt('sometext', options);
kleinmp’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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