I have BT working ok on a select box but now getting this js error when I move the cursor out of the select box (via Firebug):

uncaught exception: [Exception... "Could not convert JavaScript argument arg 0" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://mysite.com/sites/all/modules/jquery_update/replace/jquery.min.js?U :: anonymous :: line 22" data: no]

My BT code is:

<script type="text/javascript">
$('#edit-field-bedrooms-value-many-to-one-wrapper').bt('Click, hold and drag for multiple selection.', {
  trigger: 'hover',
  positions: 'right',
  shrinkToFit: 'true',
  width: 145px
  });
</script>

Anyone know what that's all about?

Comments

kleinmp’s picture

One possible issue i see in your code above is your shrinkToFit option. It should be:

 shrinkToFit: true,

Notice the 'true' does not have quotes so that it is treated as a boolean variable instead of a string.

I think I see the opposite error with your width option. There it actually should have quotes. So your full beautytips code should look like:

<script type="text/javascript">
$('#edit-field-bedrooms-value-many-to-one-wrapper').bt('Click, hold and drag for multiple selection.', {
  trigger: 'hover',
  positions: 'right',
  shrinkToFit: true,
  width: '145px'
  });
</script>
druplicate’s picture

Yes that was it, thanks.

I had just caught the width problem, but didn't realize the other.

kleinmp’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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