You just use a div that covers the whole body below the popup div and, thus, intercepts clicks. You can toy with the div background color and opacity to get a "page fading out" effect. You can also have that "cache" div handle click to close the popup.
Anyway, this question would better suited for the general jQuery discussion since this list we're on is about jQuery's internals. I'm curious though, with all the popup libs for jQuery around, why would you make a new one? No tricky question, I made a popup plugin myself because I needed some specific functionalities. 2009/11/4 Priya <pryt...@gmail.com> > Hello, > > In my project,i am handling popup messages through the asp panel and > div controls.when that popup comes by clicking a button say btnsend, > the background ie the page should become inactive,no button click or > any other functionality should not be done.. > > The popup panel's css class is popupcurve > > .popupcurve > { > width:45%; > > color: #000000 !important; > border: 15px solid #cecdbb; > background-color: #FFFFFF; > position: fixed !important; > top: 40%; > left: 25%; > z-index: 105; > > } > > The page is like this > <body> > <asp:Button runat="server" ID="butn" Text="Send" /> > <asp:Panel ID="PnlConfirmation" runat="server" CssClass="popupcurve" > Visible="false"> > <div class="popupcurve_inside" > > <table style="width: 100%;"> > <tr> > <td align="center"> > <asp:Button ID="btnok" runat="server" Text="OK" /> > </td> > </tr> > </table> > </div> > </asp:Panel> > > > > </form> > </body> > Please help me > > -- > > You received this message because you are subscribed to the Google Groups > "jQuery Development" group. > To post to this group, send email to jquery-...@googlegroups.com. > To unsubscribe from this group, send email to > jquery-dev+unsubscr...@googlegroups.com<jquery-dev%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/jquery-dev?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.