Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Cluetip - doesn't work in IE6 / IE7


Project:clueTip - flexible, enhanced tooltip
Version:1.0.3
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hey there,

I'm having some issues with Cluetip and Internet explorer. It works fine in every other browser I've tested it in. FF, Chrome and Opera.

IE is throwing this error: 'Expected Identifier, string or number'. I put the following code at the top of my functions list and the error points to that function. When I remove it the rest of the functions that I use work again.

$(document).ready(function() {
$('a.event-info').cluetip({
waitImage:true,
activation: 'click',
width: 320,
arrows: true,
dropShadow: true,
hoverIntent: false,
sticky: true,
mouseOutClose: false,
closePosition: 'title',
closeText: '<img src="images/cross.png" alt="close">',
});
});

It's targeting this:

<a class="event-info" title="Event Title - Fight Card" href="event.html" rel="event.html"></a>

Being called from the head:

<link rel="stylesheet" href="css/jquery.cluetip.css" type="text/css">
<script src="scripts/jquery.cluetip.js" type="text/javascript"></script>

Any advice / help would be appreciated, thanks.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#1

Status:active» won't fix

Hi there,

The problem is that you have a trailing comma after the last property in the options object. That isn't valid JavaScript. Firefox, Safari, and Chrome are a lot more forgiving of it, but IE throws an error.

$(document).ready(function() {
$('a.event-info').cluetip({
waitImage:true,
activation: 'click',
width: 320,
arrows: true,
dropShadow: true,
hoverIntent: false,
sticky: true,
mouseOutClose: false,
closePosition: 'title',
closeText: '', // <-- remove this comma.
});
});

#2

Status:won't fix» fixed

Thank you, I assumed it was something more sinister due do it working in the other browsers. And I find it quite ironic that ie is a bit more strict when it comes to validating. Thanks again, I love this plugin!

#3

Status:fixed» closed

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.