<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> <<A href="mailto:riegel@clearimageonline.com">riegel@clearimageonline.com </A>> 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>> Actually, this may not be as painful as I thought, although it IS<BR>> kludgy. Back about nine years ago, I'd done something similar - a<BR>> page with four frames, one of which was simply a status list. What <BR>> happens is, the frame you want to do the 'listening' (the one to be<BR>> affected by the onLoad and onUnLoad), simply listens to a variable<BR>> set in the parent frame (the first common parent to both frames). <BR>> The frame to be listened to sets the variable as needed, so onLoad<BR>> sets it to 'Complete', while onUnload sets it to 'Updating...'.<BR>> This is just a concept, no proof to back it. Thought this through <BR>> in the shower, and it seems workable. Sort of a modification of the<BR>> 'Observer' pattern, somewhat.<BR>><BR>> Regards!<BR>> -Toby Parent<BR>> <A href="http://www.tobytheballoonguy.com/"> http://www.tobytheballoonguy.com/</A><BR>><BR>>> Terry Riegel wrote:<BR>>>> Well, no use beating a dead horse. I am guessing this problem is<BR>>>> not doable? I for one have spent way to much time on it. <BR>>>><BR>>>> Thanks,<BR>>>><BR>>>> Terry<BR>>>><BR>>>><BR>>>> On Jan 4, 2007, at 10:32 AM, Terry Riegel wrote:<BR>>>><BR>>>>> It may not be possible, but I am looking for a way to trigger an <BR>>>>> event everytime a web connection starts, then another event when<BR>>>>> it finishes.<BR>>>>><BR>>>>> I have a Frames based page like...<BR>>>>><BR>>>>> +---------------------------+ <BR>>>>> |buttons * |<BR>>>>> +---------------------------+<BR>>>>> |path |<BR>>>>> +-------+-------------------+<BR>>>>> |browse |details | <BR>>>>> | | |<BR>>>>> | | |<BR>>>>> | | |<BR>>>>> +-------+-------------------+<BR>>>>> <BR>>>>> I am trying to figure out how to have "buttons" monitor activity<BR>>>>> on "details" when a page is requested turn on the spinner, when<BR>>>>> it is loaded turn off the spinner. Onload and onunload do not <BR>>>>> seem to be consistent for this. The content in details is from<BR>>>>> the same domain as all of the other pages, but will not be<BR>>>>> managed by this, so adding js to this page will not work. <BR>>>>><BR>>>>> Any Ideas?<BR>>>>><BR>>>>><BR>>>>> Terry<BR>>>>><BR>>>>><BR>>>>><BR>>>>> On Jan 3, 2007, at 2:32 PM, Terry Riegel wrote: <BR>>>>><BR>>>>>> This is what I have that fires sometimes.<BR>>>>>><BR>>>>>> top.frames['details'].window.onload=top.frames['browse'].a;<BR>>>>>> top.frames['details'].window.onunload=top.frames['browse'].b;<BR>>>>>><BR>>>>>> My js library loads in the browse frame, and the a function<BR>>>>>> turns the spinner off, the b turns it on. <BR>>>>>><BR>>>>>> Terry<BR>>>>>><BR>>>>>><BR>>>>>> On Jan 3, 2007, at 2:08 PM, Terry Riegel wrote:<BR>>>>>><BR>>>>>>> Hello, <BR>>>>>>><BR>>>>>>> I have an application that uses frames. I would like to set<BR>>>>>>> one frame to monitor what is going on in the other and turn a<BR>>>>>>> spinner on when it unloads, and turn it off when it loads. any <BR>>>>>>> quick thoughts on how I should proceed.<BR>>>>>>><BR>>>>>>> Terry<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>>>>>><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>>>>><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>>>><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>>><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><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>