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 &quot;listened to&quot; 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&#39;t care what is in the
<br>&quot;listened to&quot; 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&#39;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&#39;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 &#39;listening&#39; (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 &#39;Complete&#39;, while onUnload sets it to &#39;Updating...&#39;.<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; &#39;Observer&#39; pattern, somewhat.<br>&gt;<br>&gt; Regards!<br>&gt; -Toby Parent<br>&gt;&nbsp;&nbsp; <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;&nbsp;&nbsp; +---------------------------+
<br>&gt;&gt;&gt;&gt;&nbsp;&nbsp; |buttons&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp; |<br>&gt;&gt;&gt;&gt;&nbsp;&nbsp; +---------------------------+<br>&gt;&gt;&gt;&gt;&nbsp;&nbsp; |path&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&gt;&gt;&gt;&gt;&nbsp;&nbsp; +-------+-------------------+<br>&gt;&gt;&gt;&gt;&nbsp;&nbsp; |browse |details&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|
<br>&gt;&gt;&gt;&gt;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&gt;&gt;&gt;&gt;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&gt;&gt;&gt;&gt;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&gt;&gt;&gt;&gt;&nbsp;&nbsp; +-------+-------------------+<br>&gt;&gt;&gt;&gt;
<br>&gt;&gt;&gt;&gt; I am trying to figure out how to have &quot;buttons&quot; monitor activity<br>&gt;&gt;&gt;&gt; on &quot;details&quot; 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[&#39;details&#39;].window.onload=top.frames[&#39;browse&#39;].a;<br>&gt;&gt;&gt;&gt;&gt; 
top.frames[&#39;details&#39;].window.onunload=top.frames[&#39;browse&#39;].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>