Forums
View unanswered posts | View active topics It is currently Mon Dec 22, 2014 1:45 am



Reply to topic  [ 1 post ] 
 Tooltip not dissapearing 
Author Message

Joined: Thu Feb 07, 2013 7:13 am
Posts: 1
Post Tooltip not dissapearing
Hi!

I'm trying to show a tooltip using jQuery and ajax.
I got it to show, but now it doesn't dissapear.
Works fine when i remove PIE.

Here's my JS
Code:
$("div.detailedHelp").on("click", function () {

        var el = $(this).find(".help");
        var dv = el.next(".dvToolTip");
        dv.show().find('span').html('<img src="../../App_Themes/Norhub/images/icons/ajax-loader-white-trans.gif"> Loading...');
        $.ajax({
            type: "POST",
            url: window.webServiceUrl + "/ToolTipService.asmx/GetToolTip",
            cache: false,
            contentType: "application/json; charset=utf-8",
            data: '{"context":"' + el.attr("data-contextid") + '"}',
            dataType: "json",
            success: function (data) {
                dv.find('span').html(data.d);
                var pos = el.offset();

                dv.css({
                    top: 32,
                    right: (pos.right - 10) + "px"
                }).fadeIn(100);
            },
            error: function () {
                dv.find('span').html("Sorry, an error occurred");
            }
        });
    });

    $('.help[data-contextid="-1"]').hover(function () {
        var dv = $(this).next(".dvToolTip");
        if (dv.html() != null) {
            dv.fadeIn(100);
        }
    }, function () {
        var dv = $(this).next('.dvToolTip');
        dv.hide();
    });


Thu Feb 07, 2013 7:22 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.