You need to sign in to do that
Don't have an account?
bozotheclown
Forcing an Audible Sound from Apex?
Hello. I have an ActionPoller that forces a refresh of a VF pageBlockTable every ten seconds. I am hoping to add an audio alert to notify if the pageBlockTable changes upon refresh. Are we able to do this via Apex? In other words, is there any audio alert that I could use to note that a list size has changed?
Thanks in advance.
Here's how I would accomplish this:
1) Create a hidden field:
2) Modify your actionPoller to use onComplete:
3) Include an appropriate element that can play an audio snippet (Flash is one possibility):
4) In a script tag somewhere, use the processUpdates function:
Note that this code is only hypothetical, as I've not actually had to manipulate a Flash from within JavaScript, but this should get you very close to where you'd like to go. It might also be able to simply hijack salesforce.com's default ding (the one that plays when you have a task reminder), but I wouldn't rely on their internal library too heavily.
Thanks. Much appreciated.