Results 1 to 7 of 7

Thread: Statusbar

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    But if you you a webform hyperlink component?
    Greetz Matje

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Simply add the onMouseOver statement in the <asp:HyperLink> tag. You'll get a warning in the editor that it can't find the onMouseOver attribute of the HyperLink element but that doesn't matter it will just send it to the client in the anchor tag instead.

    Best regards

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    I used this
    <asp:HyperLink onMouseOver=window.status="Test" id="hplproducts" style="Z-INDEX: 104; LEFT: 9px; POSITION: absolute; TOP: 153px" runat="server" Width="110px" Height="17px">All products</asp:HyperLink>
    Greetz Matje

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    But i got an error on it
    Greetz Matje

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    This is the error I got
    Server Error in '/oefp155' Application.
    --------------------------------------------------------------------------------

    Parser Error
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: The server tag is not well formed.

    Source Error:


    Line 12: <form id="Form1" method="post" runat="server">
    Line 13: <asp:ImageButton id="imglogo" style="Z-INDEX: 101; LEFT: 11px; POSITION: absolute; TOP: 16px" runat="server" Width="105px" Height="67px" ImageUrl="file:///C:\Documents and Settings\viennematthias\My Documents\init_dotnet.gif"></asp:ImageButton>
    Line 14: <asp:HyperLink onMouseOver=window.status="Test" id="hplproducts" style="Z-INDEX: 104; LEFT: 9px; POSITION: absolute; TOP: 153px" runat="server" Width="110px" Height="17px">All products</asp:HyperLink>
    Line 15: <asp:HyperLink id="hplregister" style="Z-INDEX: 103; LEFT: 10px; POSITION: absolute; TOP: 129px" runat="server" Width="104px" Height="16px">Register</asp:HyperLink>
    Line 16: <asp:HyperLink id="hplhome" style="Z-INDEX: 102; LEFT: 9px; POSITION: absolute; TOP: 106px" runat="server" Width="97px" Height="14px" NavigateUrl="home.aspx">home</asp:HyperLink>


    Source File: c:\inetpub\wwwroot\oefp155\menu.aspx Line: 14


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.0.3328.4; ASP.NET Version:1.0.3328.4
    Greetz Matje

  6. #6
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Originally posted by matjev
    I used this
    <asp:HyperLink onMouseOver=window.status="Test" id="hplproducts" style="Z-INDEX: 104; LEFT: 9px; POSITION: absolute; TOP: 153px" runat="server" Width="110px" Height="17px">All products</asp:HyperLink>
    The problem is that you haven't quoted the onMouseOver attribute value and you don't have the ending semicolon (remember that this is JavaScript code):
    Code:
    onMouseOver="window.status='Test'; return true;"
    Best regards

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    No I used the code
    <asp:HyperLink onMouseOver="window.status='Test'; return true;" id="hplproducts" style="Z-INDEX: 104; LEFT: 9px; POSITION: absolute; TOP: 153px" runat="server" Width="110px" Height="17px">All products</asp:HyperLink>

    The problem now is that teh window.status is always test except when I'm on the hyperlinkt.

    It's the opposit of the the thing it should be
    Greetz Matje

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width