Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to close/hide the popup onmouseout event

how to close/hide the popup onmouseout event

Scheduled Pinned Locked Moved ASP.NET
questioncsharpjavascriptwinformssysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    For_IT
    wrote on last edited by
    #1

    Hi all, I have created helptooltip usercontrol and using it on my other controls and pages. aspx is

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HelpTooltipButton.ascx.cs" Inherits="Controls.HelpTooltipButton" %>
    <asp:ImageButton ID="TooltipButton" runat="server" Height="19px" Width="19px" ImageUrl="~/Images/HelpIcon_sm.gif" />

    the code behind is :

      protected override void OnPreRender(EventArgs e)
        {
            this.TooltipButton.TabIndex = 1000;
            functionScript = new System.Text.StringBuilder("showPopup('" + Content + "','" + Title + "','" + TooltipButton.ClientID + "');return false;");
            TooltipButton.OnClientClick = functionScript.ToString();
            TooltipButton.CausesValidation = ButtonValidator;
        }
    

    This control is being used in other user controls. In my main aspx page, I have used multiview control, to use for tabstrip. when I am on one tab, and if help button is clicked, helptooltip opens. without closing that tooltip if I move to other tab, the tooltip is still open. I would like to close that popup when I move from one tab to other. I tried to use mouseover and mouseout events for the tooltip as:

    protected override void OnPreRender(EventArgs e)
    {
    if ((TEAMAppConstants.m_AppMode == TEAMAppConstants.AppMode.AdminPages) && (TEAMAppConstants.SelectedUseCase == TEAMAppConstants.DASHBOARD_STATUS))
    {
    return;
    }
    this.TooltipButton.TabIndex = 1000;
    functionScript = new System.Text.StringBuilder("showPopup('" + Content + "','" + Title + "','" + TooltipButton.ClientID + "');return false;");
    // TooltipButton.OnClientClick = functionScript.ToString();
    TooltipButton.Attributes.Add("onmouseover", functionScript.ToString());
    TooltipButton.Attributes.Add("onmouseout", "hidePopup('" + TooltipButton.ClientID.ToString() + "');");
    TooltipButton.CausesValidation = ButtonValidator;
    }

    here, onmouseover tooltip opens, but on mouseout I javascript exception as object not found. can anyone please suggest me, how can I handle onmouseout event to close the already opened tooltip help? Many thanks.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups