I want to use greybox to display an animated progress bar gif while my server is processing an ajax request. When the server is done, I want the greybox to close. When I use the following code, it works fine for the first postback but when I fire off another postback, I get an error on line 107 of gb_scripts.js saying that this.iframe is null or not an objct. Can someone help me figure out why?
This is my html: <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <title><%=_siteTitle %></title> </head> <body> <form id="form1" runat="server"> <script type="text/javascript"> var GB_ROOT_DIR = "greybox/"; </script> <script src="greybox/AJS.js" type="text/javascript"></script> <script src="greybox/AJS_fx.js" type="text/javascript"></script> <script src="greybox/gb_scripts.js" type="text/javascript"></ script> <link href="greybox/gb_styles.css" rel="stylesheet" type="text/ css" /> <script src="ScriptLibrary.js" type="text/javascript"></script> <!-- SOME OTHER HTML STUFF --> </form> </body> </html> This is my javascript (in ScriptLibrary.js): Sys.Application.add_load(AppLoad); function AppLoad() { Sys.WebForms.PageRequestManager.getInstance().add_endRequest (EndRequest); Sys.WebForms.PageRequestManager.getInstance().add_beginRequest (BeginRequest); } function BeginRequest(sender, args) { GB_showCenter("Processing Request", "ProgressBar.gif"); } function EndRequest(sender, args) { GB_hide(); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GreyBox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/greybox?hl=en -~----------~----~----~----~------~----~------~--~---

