Just a note to all those that may stumble about the same issue with Internet Explorer 7 and JavaScript (and maybe jQuery). The following code works fine in Firefox and Safari:
$(document).ready(function(){
$(".showtooltip").qtip({
content: {
text: false,
}
});
});
Then I tried the website with IE7 and it just didn’t work. Got some error message indicating an error on a certain line – but no real help to find the bug. So I asked Google and it found a blog post about issues with jQuery and IE7. The solution is as simple as removing the trailing comma after the last entry of an array. The corrected code looks like:
$(document).ready(function(){
$(".showtooltip").qtip({
content: {
text: false
}
});
});
There was just that comma after “text: false,” – and oh wonder, now it works also in IE7. Damned stupid browser. BTW: The above is for using qTip, a jQuery library to show tooltips which is pretty nice.
This is true for every other js framework as well as for js itself. IE doesn’t know how to deal with an object if the last element has a comma in the end