ad page Tooltip not work - Reload xslt file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ismailc
    New Member
    • Sep 2006
    • 200

    ad page Tooltip not work - Reload xslt file?

    Hi, I need help please!
    My tooltip works fine but the moment one reload the page which is set on some objects then the tooltip does not work!

    How can i bypas this or make it reload the xslt file?

    <xsl:if test="Tooltip != ''">
    <a>
    <xsl:attribut e name='href'>#</xsl:attribute>
    <xsl:attribut e name='rel'>ttip _<xsl:value-of select='@name' /></xsl:attribute>
    <xsl:attribut e name='onClick'> this.blur();ret urn false;</xsl:attribute>
    <img src="images/help.jpg" align="texttop" border="0" style='border : none; cursor:default; outline-style:none;'></img>
    </a>
    <div id="{concat('tt ip_',@name)}" class="balloons tyle" style="width: 230px; border : none;">
    <xsl:value-of select="Tooltip " />
    </div>
    </xsl:if>
    <xsl:if test="@dynamic= 'true'">
    <xsl:element name="asp:image Button">
    <xsl:attribut e name='id'>reloa d_<xsl:value-of select='@name' /></xsl:attribute>
    <xsl:attribut e name='runat'>se rver</xsl:attribute>
    <xsl:attribut e name='imageurl' >images/CFG/blank.gif</xsl:attribute>
    </xsl:element>
    </xsl:if>


    Please what am i doing wrong?
    Regards
  • ismailc
    New Member
    • Sep 2006
    • 200

    #2
    Hi, - i think i'm kind of screwed as i think when it first loads the xslt loads the aspx file then it fine - i can refresh the page it's okay but i loose my inserted values. Once the page is loaded & click on an autopost event then it executes a javascript funtion that kind of only load the objects & not the entire page then the tooltip is out!

    i know it's a lot but i have to get this going!

    The xslt file loads this aspx file that - on autopost call a jscript function


    ASPX File

    <%@ Register TagPrefix="uc1" TagName="MainMe nu" Src="MainMenu.a scx" %>
    <%@ Register TagPrefix="uc1" TagName="Header " Src="Header.asc x" %>
    <%@ Page language="c#" AspCompat="true " Codebehind="myP rocessItem.aspx .cs" AutoEventWireup ="false" Inherits="FlowC entric.Net.Navi gator.myProcess Item" smartNavigation ="True" enableViewState Mac="False" debug="False" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    <HEAD>
    <title>myProces sItem</title>
    <META http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <LINK href="skins/<% =Session["skin"] %>/styles.css" type="text/css" rel="stylesheet ">
    <meta content="Micros oft Visual Studio .NET 7.1" name="GENERATOR ">
    <meta content="C#" name="CODE_LANG UAGE">
    <meta content="JavaSc ript" name="vs_defaul tClientScript">
    <meta content="http://schemas.microso ft.com/intellisense/ie5" name="vs_target Schema">
    </HEAD>
    <body>
    <form id="Form1" method="post" encType="multip art/form-data" runat="server">
    <uc1:header id="Header1" runat="server"> </uc1:header><uc1 :mainmenu id="MainMenu1" runat="server"> </uc1:mainmenu>
    <table class="tbDetail " width="100%">
    <tr>
    <td class="wrnHead" ><asp:label id="lblMessage " runat="server"> </asp:label></td>
    </tr>
    <tr>
    <td class="row1"><a sp:label id="lblName" runat="server"> </asp:label></td>
    </tr>
    </table>
    <asp:placeholde r id="plc" runat="server" EnableViewState ="False"></asp:placeholder >
    <table class="tbDetail " width="100%">
    <tr>
    <td class="wrnHead" ><asp:label id="lblMessage2 " runat="server"> </asp:label></td>
    </tr>
    </table>
    </form></body></HTML>



    View the source it calls the foll funtion:

    <script language="javas cript" type="text/javascript">
    <!--
    function __doPostBack(ev entTarget, eventArgument) {
    var theform;
    if (window.navigat or.appName.toLo werCase().index Of("microsoft" ) > -1) {
    theform = document.Form1;
    }
    else {
    theform = document.forms["Form1"];
    }
    theform.__EVENT TARGET.value = eventTarget.spl it("$").join(": ");
    theform.__EVENT ARGUMENT.value = eventArgument;
    theform.submit( );
    }
    // -->
    </script>
    <script type="text/javascript" src="/ig_common/20043/scripts/ig_csom.js" ></script>
    <script type="text/javascript" src="/ig_common/20043/scripts/ig_webmenu.js" ></script>
    <script language="JScri pt" type="text/JScript" src="/aspnet_client/system_web/1_1_4322/SmartNav.js"></script>

    Comment

    • ismailc
      New Member
      • Sep 2006
      • 200

      #3
      Hi, the tooltip is in the xslt file which i think is called via 'tbDetail' in the aspx.

      Is there a way to maybe incorporate the tooltip in the aspx page, so that the javascript can also load it again after Postback?

      <xsl:if test="Tooltip != ''">
      <a>
      <xsl:attribut e name='href'>#</xsl:attribute>
      <xsl:attribut e name='rel'>ttip _<xsl:value-of select='@name' /></xsl:attribute>
      <img src="images/help.jpg" align="texttop" border="0"></img>
      </a>

      <div id="{concat('tt ip_',@name)}" class="balloons tyle">
      <xsl:value-of select="Tooltip " />
      </div>
      </xsl:if>

      Thank You

      Comment

      Working...