Hello, I'm struggling with the latest version of tooltip, i can't get
it working in IE. Tho it's  showing up perfectly in Opera and FF.

This is the code:

    $("option").livequery(function(){
        $(this).each(function(i){
            var str = $(this).text();
            if (str.length > 20) {
                $(this).text(str.substr(0, 18) + "...>>");
                $(this).tooltip({
                    track: true,
                    delay: 0,
                    showURL: false,
                    fixPNG: true,
                    bodyHandler: function() {
                        newstr = "";
                        for (var counter = 0;counter <= str.length;
counter++ ) {
                            if (counter % 60 == 0 && counter != 0) {
                                newstr = newstr + "<br />";
                            }
                            newstr = newstr + str.substring(counter-1,
counter);
                        }
                        alert(newstr);
                        return "<b>" + newstr + "</b>";
                    }
                });

            }
        });

    });

I've included the bgiframe plugin,as well as i simply tried to use $
("option").tooltip(); (without livequery and all the stuff around) It
won't show up whatsoever. The appropriate CSS entries have also been
made. Also if you notice the alert, it is executed in opera and FF,
but it doesn't show up in IE7/IE6. The funny thing is that the demo
page of the tooltip plugin works flawlessly with IE.

I would appreciate any leads to solve this problem.

Reply via email to