hi will, im not certain, but IIRC, fluid has builtin support for Facebook dock badges... so your work is being wiped out by fluid every few seconds as it tries to udpate its own dock badge. try:
Preferences -> General -> Uncheck 'Fluid attempts to show Dock badge labels' and see if that fixes it. td On Tue, Dec 30, 2008 at 9:03 AM, Will Brown <[email protected]> wrote: > > Hi all! I've been working on trying to get the number of Facebook > notifications to show up in the dock icon. I've managed to get it > working - kind of - using this code: > > updateBadges(); > > function updateBadges() { > window.fluid.dockBadge = document.getElementById > ('presence_notifications_count').getElementsByTagName('strong') > [0].innerHTML; > setTimeout("updateBadges", 1000); > } > > The problem is that the correct count displays for about half a second > on the dock badge, and then disappears. The same thing happens if I > take out the setTimeout (meaning that it only updates once) and it > usually clears around when the page finishes loading completely. Does > anyone have any idea where this could be going wrong? > > Thanks in advance for your help. If you want to try it yourself the > script is here: http://userscripts.org/scripts/show/39511 > > Thanks again! > > Will > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
