why use OWA as a menu extra?  kinda limits your viewing space and the
like doesn't it?  by having it in the dock makes it more like an email
app.



On Feb 25, 1:17 pm, JGAllen23 <[email protected]> wrote:
> I'm using a script similar to that, but I want to be able to have the
> outlook ssb as a Menu ssb.  The dock badge doesn't show up when it is
> set up as a menu ssb.
>
> On Feb 25, 12:16 pm, Kahil <[email protected]> wrote:
>
> > i don't know about that, but here's a lil script i threw together
> > using bits of scripts i found to do what i wanted.  just edit it the
> > @include part to have your outlook server address, but leave the /*?
> > Cmd=navbar* on the end of it so it'll work.
>
> > // ==UserScript==
> > // @name           OWA MailNotify
> > // @namespace      http://ikahil.com
> > // @description    Gives a dock badge and sound
> > // @include        https://your-owa-server.com/exchange/*?Cmd=navbar*
> > // ==/UserScript==
>
> > // Times in seconds
> > var refreshTime = 30;
> > var iframeLoadWaitTime = 1;
> > var iframeFirstLoadWaitTime = 1;
>
> > //-------------------------------
>
> > var unread_count = -1;
>
> > parent.document.title = "Outlook Web Access";
> > var navbody = document.getElementsByTagName('body')[0];
>
> > // Inject an IFRAME into the navbar containing the inbox
> > navbody.innerHTML = navbody.innerHTML.replace(/$/,'<iframe
> > id="iframeinbox" frameborder=no scrolling=no width=0 height=0
> > src="Inbox/?Cmd=contents&iframeinbox=1"></iframe>');
>
> > // Find the iframe and change its code.
> > function enter_iframe () {
> >         var iframe = document.getElementById('iframeinbox');
> >         iframe = iframe.contentWindow ? iframe.contentWindow.document :
> > iframe.contentDocument;
> >         iframe = iframe.documentElement || iframe.body;
>
> >         bolds = iframe.getElementsByTagName("b");
> >         unread = (bolds.length - 4);
> >         // each unread message has 8 bold tags associated with it
> >         if (unread > 0){unread= unread/8;
> >                 window.fluid.dockBadge = unread;
> >                 window.fluid.playSoundNamed("Hero");
> >         }
>
> >         // update the title of the parent frameset
> >         if (unread < 0) {
> >                 parent.document.title = "Outlook Web Access";
> >         } else {
> >                 parent.document.title = "Outlook Web Access";
>
> >         }
>
> >         if ((unread > unread_count) && (unread_count != -1)) {
> >                 //      Todo: Do some notification.. Like:
> >                 //      alert('Youve got mail!');
> >                 //      or
> >                 //      window.open('youvegotmail.html','"noti"','');
> >                 //      or even better. Simply play a sound
> >         }
>
> >         unread_count = unread;
>
> >         //Make timer reload iframe
> >         var tm = setTimeout(reload,refreshTime*1000);
>
> > }
>
> > function reload() {
> >         var iframe = document.getElementById('iframeinbox');
> >         iframe.src = iframe.src;
>
> >         //Wait iframeLoadWaitTime seconds to make sure the iframe is
> > completely loaded.
> >         var tm = setTimeout(enter_iframe, iframeLoadWaitTime*1000);
>
> > }
>
> > //--- First run
> > //Wait iframeFirstLoadWaitTime seconds to make sure the iframe is
> > completely loaded.
> > var tm = setTimeout(enter_iframe, iframeFirstLoadWaitTime*1000);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"fluidapp" 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/fluidapp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to