Hi,
I am trying to make a popup window to appear in my web form when a certain value in the text box accompanied to the marker exceeds a threshold.
I tried this code, but it is activated on button click, not on an event:
<head runat="server"><title></title><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script><script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script><link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" /><script type="text/javascript">$("[id*=btnPopup]").live("click", function () {$("#dialog").dialog({ // title: "jQuery Dialog Popup", buttons: { Close: function () {$(this).dialog('close'); } } }); return false; });</script></head><body><form id="form1" runat="server"><%-- <div>--%><div id="dialog" style="display: none"> This is a simple popup</div><%--</div>--%><asp:Button ID="btnPopup" runat="server" Text="Show Popup" /></form></body>
Can anybody help me how to activate the popup on an event that I described please?
Thanks