I
Ing. Rajesh Kumar
Hi everybody
I want to solve the following problem :
I have some panels on a web page. User select which one is visible or hidden. When a panel is visible and user clicks on the web page but outside of that panel then I want to call a function to hide visible panel(s).
I am calling server functions by the following code but does not work ?
Sub Server_Function(sender as Object, e as EventArgs)
'Clean web page
End sub
<script language="JavaScript">
function left_mouse_button() {
if (event.button==1 && somePanel.Visible == true)
{ <% Server_Function() %> }
}
document.onmousedown = left_mouse_button
</script>
Thanks in advance
Raja
I want to solve the following problem :
I have some panels on a web page. User select which one is visible or hidden. When a panel is visible and user clicks on the web page but outside of that panel then I want to call a function to hide visible panel(s).
I am calling server functions by the following code but does not work ?
Sub Server_Function(sender as Object, e as EventArgs)
'Clean web page
End sub
<script language="JavaScript">
function left_mouse_button() {
if (event.button==1 && somePanel.Visible == true)
{ <% Server_Function() %> }
}
document.onmousedown = left_mouse_button
</script>
Thanks in advance
Raja