Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6570145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:43:10+00:00 2026-05-25T14:43:10+00:00

I have a web application that I have built and it needs to have

  • 0

I have a web application that I have built and it needs to have three different kind of alerts. Single beep, long beep and triple beep. All the audio files are in .wav format. The application works as expected with all beep notifications playing at the right time on a Mac or PC, with IE, FireFox, Chrome and Safari on Mac.

When I run the application on an iPad it only wants to play the single beep and will play it every time it is supposed to. When it’s supposed to play the long beep or triple beep, it doesn’t.

Can somebody please tell me why this is happening and what I can do to get this working? This web application was built to run on the iPad and full web browsers. This is the last thing that needs to be worked out, before the application is completed.

Thanks in advance. 🙂

Here is my code for the audio tags and the javascript that makes it work.

HTML

    <span style="visibility:hidden; display: none; ">
        <audio src="./sounds/beep.wav"></audio>
        <audio src="./sounds/longBeep.wav"></audio>
        <audio src="./sounds/tripleBeep.wav"></audio>
    </span>

JavaScript

    function playBeep() {
        var beepAudio = document.getElementsByTagName('audio')[0];
        beepAudio.play();    
    }

    function playLongBeep() {
        var beepAudio = document.getElementsByTagName('audio')[1];
        beepAudio.play();    
    }

    function playTripleBeep() {
        var beepAudio = document.getElementsByTagName('audio')[2];
        beepAudio.play();    
    }

All the audio files are using the same codec and the format.

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:43:11+00:00Added an answer on May 25, 2026 at 2:43 pm

    Only one audio tag at a time is supported on MobileSafari.

    Use one audio element and change the src attribute using JS. Then call load/play when required. This is described in detail here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have built a web application that accepts SOAP messages, does some processing, calls
I have built a web application using Java EE platform that sells one of
I have an application that will accept URLs from the built in web browser
We have built a hosted web application, that is developed in a way that
I have made a build system for my web application that's rewriting all resource
I have an ASP.NET web application I built for a client that uses default
I have to build a web application that's similar to a branch/store locater. A
I have been asked to build a web application that will be used to
I have an application that sends messages to an external web service. I build
I have a web application that should behave differently for internal users than external

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.