Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Not getting sound alert when the page is minimized

    Hi All,

    Please help me to get the right code:

    There are two web pages, say page1 on PC1 and page2 on other PC2.

    From page1, I request for rate from page2.
    Current Behaviuor:
    "When I click the button On page1 to get the request from page2, we get the sound alert on PC2 only when page2 is open."

    Expected Behaviour:
    "When I click the button On page1 to get the request from page2, there should be sound alert on PC2 whether the page2 is open or minimized to taskbar."

    Javascript Code which I implemented:

    function audioAlert() {
    var audioFrame = window.document.audioFrame;
    if (audioFrame) {
    audioFrame.document.write("<bgsound src='" + this.audioAlertUrlHome + userPref.audioAlertFile + "' loop=1>");
    audioFrame.document.close();
    }
    }

    The error, most probably, is with the line:
    audioFrame.document.write("<bgsound src='" + this.audioAlertUrlHome + userPref.audioAlertFile + "' loop=1>");
    and particularly with the write() method.
    So Please tell me the right code/alternative code/sample code.


    Regards,
    Kumar
    Last edited by pkp_it; 12-21-2007 at 11:41 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •