<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Aaron,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks for the idea. I had tried that earlier, the problem is the scr attribute doesn't change when the same page is being loaded again as is the case in my application.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Terry</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Jan 5, 2007, at 12:18 PM, Aaron Bassett wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">When you load a new page into the frame it should change the frames src attribute. You can have a function that checked ever Xsecs to see if the last known and current src are different. If they are start spinner.<BR><BR>Then on the load event change the last known to current and stop the spinner. <BR><BR>Might be another way of approaching it??<BR><BR><BR><BR><DIV><SPAN class="gmail_quote">On 1/5/07, <B class="gmail_sendername">Terry Riegel</B> &lt;<A href="mailto:riegel@clearimageonline.com">riegel@clearimageonline.com </A>&gt; wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Tobias,<BR><BR>Thanks for the response, but the problem is I do not know what is <BR>going to be displayed in the "listened to" frame and do not have<BR>control over its html (it is a filemanager). I do have a similar<BR>working solution for the pages I do control.<BR><BR>The solution I posted a few minutes ago doesn't care what is in the <BR>"listened to" frame, it could be an html page or an image or anything.<BR><BR>Basically my solution relies on the onload event as the onunload<BR>event doesn't seem to fire for a frameset. So I only have to control <BR>when I turn on the spinner. It will always be turned off when the<BR>content loads into the page.<BR><BR>Thanks for the reply.<BR><BR><BR>Terry Riegel<BR><BR><BR><BR>On Jan 5, 2007, at 9:18 AM, Tobias Parent wrote:<BR> <BR>&gt; Actually, this may not be as painful as I thought, although it IS<BR>&gt; kludgy. Back about nine years ago, I'd done something similar - a<BR>&gt; page with four frames, one of which was simply a status list. What <BR>&gt; happens is, the frame you want to do the 'listening' (the one to be<BR>&gt; affected by the onLoad and onUnLoad), simply listens to a variable<BR>&gt; set in the parent frame (the first common parent to both frames). <BR>&gt; The frame to be listened to sets the variable as needed, so onLoad<BR>&gt; sets it to 'Complete', while onUnload sets it to 'Updating...'.<BR>&gt; This is just a concept, no proof to back it. Thought this through <BR>&gt; in the shower, and it seems workable. Sort of a modification of the<BR>&gt; 'Observer' pattern, somewhat.<BR>&gt;<BR>&gt; Regards!<BR>&gt; -Toby Parent<BR>&gt;   <A href="http://www.tobytheballoonguy.com/"> http://www.tobytheballoonguy.com/</A><BR>&gt;<BR>&gt;&gt; Terry Riegel wrote:<BR>&gt;&gt;&gt; Well, no use beating a dead horse. I am guessing this problem is<BR>&gt;&gt;&gt; not doable? I for one have spent way to much time on it. <BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Thanks,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Terry<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; On Jan 4, 2007, at 10:32 AM, Terry Riegel wrote:<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; It may not be possible, but I am looking for a way to trigger an <BR>&gt;&gt;&gt;&gt; event everytime a web connection starts, then another event when<BR>&gt;&gt;&gt;&gt; it finishes.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; I have a Frames based page like...<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;   +---------------------------+ <BR>&gt;&gt;&gt;&gt;   |buttons                *   |<BR>&gt;&gt;&gt;&gt;   +---------------------------+<BR>&gt;&gt;&gt;&gt;   |path                       |<BR>&gt;&gt;&gt;&gt;   +-------+-------------------+<BR>&gt;&gt;&gt;&gt;   |browse |details            | <BR>&gt;&gt;&gt;&gt;   |       |                   |<BR>&gt;&gt;&gt;&gt;   |       |                   |<BR>&gt;&gt;&gt;&gt;   |       |                   |<BR>&gt;&gt;&gt;&gt;   +-------+-------------------+<BR>&gt;&gt;&gt;&gt; <BR>&gt;&gt;&gt;&gt; I am trying to figure out how to have "buttons" monitor activity<BR>&gt;&gt;&gt;&gt; on "details" when a page is requested turn on the spinner, when<BR>&gt;&gt;&gt;&gt; it is loaded turn off the spinner. Onload and onunload do not <BR>&gt;&gt;&gt;&gt; seem to be consistent for this. The content in details is from<BR>&gt;&gt;&gt;&gt; the same domain as all of the other pages, but will not be<BR>&gt;&gt;&gt;&gt; managed by this, so adding js to this page will not work. <BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; Any Ideas?<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; Terry<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; On Jan 3, 2007, at 2:32 PM, Terry Riegel wrote: <BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; This is what I have that fires sometimes.<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; top.frames['details'].window.onload=top.frames['browse'].a;<BR>&gt;&gt;&gt;&gt;&gt; top.frames['details'].window.onunload=top.frames['browse'].b;<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; My js library loads in the browse frame, and the a function<BR>&gt;&gt;&gt;&gt;&gt; turns the spinner off, the b turns it on. <BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; Terry<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; On Jan 3, 2007, at 2:08 PM, Terry Riegel wrote:<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;&gt; Hello, <BR>&gt;&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;&gt; I have an application that uses frames. I would like to set<BR>&gt;&gt;&gt;&gt;&gt;&gt; one frame to monitor what is going on in the other and turn a<BR>&gt;&gt;&gt;&gt;&gt;&gt; spinner on when it unloads, and turn it off when it loads. any <BR>&gt;&gt;&gt;&gt;&gt;&gt; quick thoughts on how I should proceed.<BR>&gt;&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;&gt; Terry<BR>&gt;&gt;&gt;&gt;&gt;&gt; _______________________________________________<BR>&gt;&gt;&gt;&gt;&gt;&gt; Javascript mailing list <BR>&gt;&gt;&gt;&gt;&gt;&gt; <A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A><BR>&gt;&gt;&gt;&gt;&gt;&gt; <A href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript </A><BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; _______________________________________________<BR>&gt;&gt;&gt;&gt;&gt; Javascript mailing list<BR>&gt;&gt;&gt;&gt;&gt; <A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu </A><BR>&gt;&gt;&gt;&gt;&gt; <A href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</A><BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; _______________________________________________ <BR>&gt;&gt;&gt;&gt; Javascript mailing list<BR>&gt;&gt;&gt;&gt; <A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A><BR>&gt;&gt;&gt;&gt; <A href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript </A><BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; _______________________________________________<BR>&gt;&gt;&gt; Javascript mailing list<BR>&gt;&gt;&gt; <A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A><BR>&gt;&gt;&gt; <A href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</A><BR>&gt;&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Javascript mailing list <BR>&gt; <A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A><BR>&gt; <A href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</A><BR><BR>_______________________________________________ <BR>Javascript mailing list<BR><A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A><BR><A href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</A><BR> </BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Javascript mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>