G
Guest
Hi,
I have problem to get the control id and set its visible to true/false(mean
show/hide).
here is my code:
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="ucNavbar.ascx.vb" Inherits="UserInterfaceDesign.ucNavbar"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<A id="hpL" href="" DESIGNTIMEDRAGDROP="59" runat="server"
onmouseover="window.status='<I>text to display in status bar</I>'; return
true;">
Make Request</A>
<asp:linkbutton id="lbtnSupport" runat="server"
Width="104px">Support</asp:linkbutton>
<asp:linkbutton id="lbtnLogoff" runat="server">Log off</asp:linkbutton>
<DIV id="divNavmakereq" style="VISIBILITY: visible; WIDTH: 144px; POSITION:
relative; HEIGHT: 100px; BACKGROUND-COLOR: aqua"
runat="server" ms_positioning="GridLayout"><INPUT style="Z-INDEX: 101;
LEFT: 8px; POSITION: absolute; TOP: 8px" type="button" value="Yahoo"></DIV>
<script type="text/javascript">
function fn_mouseoverjavascript(){
alert(document.getElementById('divNavmakereq');
}
</script>
in the javascript function, i try to show the control name, the error
message prompt:
object expected. Actually my concern is to show / hide the divNavmakereq
control.
have any ideas?
I already out of ideas.
thank you in advance.
best regards,
GL
I have problem to get the control id and set its visible to true/false(mean
show/hide).
here is my code:
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="ucNavbar.ascx.vb" Inherits="UserInterfaceDesign.ucNavbar"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<A id="hpL" href="" DESIGNTIMEDRAGDROP="59" runat="server"
onmouseover="window.status='<I>text to display in status bar</I>'; return
true;">
Make Request</A>
<asp:linkbutton id="lbtnSupport" runat="server"
Width="104px">Support</asp:linkbutton>
<asp:linkbutton id="lbtnLogoff" runat="server">Log off</asp:linkbutton>
<DIV id="divNavmakereq" style="VISIBILITY: visible; WIDTH: 144px; POSITION:
relative; HEIGHT: 100px; BACKGROUND-COLOR: aqua"
runat="server" ms_positioning="GridLayout"><INPUT style="Z-INDEX: 101;
LEFT: 8px; POSITION: absolute; TOP: 8px" type="button" value="Yahoo"></DIV>
<script type="text/javascript">
function fn_mouseoverjavascript(){
alert(document.getElementById('divNavmakereq');
}
</script>
in the javascript function, i try to show the control name, the error
message prompt:
object expected. Actually my concern is to show / hide the divNavmakereq
control.
have any ideas?
I already out of ideas.
thank you in advance.
best regards,
GL