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>