Just to test, maybe view the page source after you've loaded your .net page, then save it as a plain ole HTML file and move the script stuff to where it should be. If it's still borking, I'd recommend stepping thru it with Firebug to see exactly what the process is that triggers the problem. The code you posted really isn't complete enough (for me, anyway) to be able to eyeball your problem; if you can't spot it by stepping thru, post the HTML only version's link here and I will try stepping thru it too.
Tyler Style http://www.nirdvana.com On Dec 6, 2:18 pm, ahaid <[EMAIL PROTECTED]> wrote: > Thanks for the reply. The javascript includes have to be in the <body> > because this is an .net masterpage and when I put them in <head>, they > don't get registered. Additionally, I left off the code that shows the > links to my javascript files are dynamically built like this < > %=WebRootUrl%>/greybox/ScriptLibrary.js, and that won't resolve > outside the <form> tag in asp.net. I have to dynamically build them > because I have multiple web apps using the same masterpage. I'm > building a huge SaaS application and want to use GreyBox to aid in the > UI. > > I had already tried using GB_showImage in addition to GB_showCenter > and I get the same error. I just tried wrapping the image in a html > file and I still get the same error. > > On Dec 5, 10:49 am, Logos <[EMAIL PROTECTED]> wrote: > > > Um, why are is your javascript in the body instead of the head? That > > may affect it. > > > It's possibly because you're just showing the gif directly instead of > > using an html page to frame it. But that's just a shot in the dark. > > > Post again if it is still broken after fixing those... > > > Tyler Stylehttp://www.nirdvana.com > > > On Dec 4, 4:03 pm, ahaid <[EMAIL PROTECTED]> wrote: > > > > 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(); > > > > }- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

