Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    So I'm guessing it should be something like: function operatorPutCallThrough() { operatorPickup.play(true); }
  2. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    It's basically to make a mockup of "operator assisted dialing". If you know what I mean.
  3. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    Should I instead put: function() {operatorPutCallThrough(); operatorPickup.play(); }
  4. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    Perhaps I should have put something like: function() {operatorPutCallThrough(); operatorPickup.play(); }); }
  5. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    I'm not sure. How would you define them?
  6. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    Now it says there's an error on line 398, with an "Unexpected Token" of a ). The exact code in that area is: operatorPutCallThrough(); operatorPickup.play(); });
  7. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    How's this? var dialTone=new Audio('file:///M:/Documents/Virtual%20Phone/Call%20Progress%20Tones/Dial%20Tone/USA%20Dial%20Tone.ogg'); var isOffHook=false; var callIncoming=false; var allowDial = true; var ringingTone=new Audio('Ringing...
  8. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    How's this? I hope it looks right. var dialTone=new Audio('file:///M:/Documents/Virtual%20Phone/Call%20Progress%20Tones/Dial%20Tone/USA%20Dial%20Tone.ogg'); var isOffHook=false; var callIncoming=false; var allowDial = true; var ringingTone=new Audio('Ringing...
  9. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    Three spaces before or after the opening braces {? I'm confused!
  10. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    I corrected a few more pieces of code with your fixes. Here's what I have. <script> var dialTone=new Audio('file:///M:/Documents/Virtual%20Phone/Call%20Progress%20Tones/Dial%20Tone/USA%20Dial%20Tone.ogg'); var isOffHook=false; var callIncoming=false; var allowDial = true; var ringingTone=new...
  11. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    Should there not be a comma after the ) of pickupCallTrace.addEventListener("ended")? Maybe that's what was wrong.
  12. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    How's this? I hope it looks right to you. case "*57": var randNum57=Math.random()>=0.5; if(randNum57) { var pickupCallTrace=new Audio('callResponses/trace3-xxx-fleet.mp3'); } else { var pickupCallTrace=new...
  13. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    Yes, pickupCallTrace.play(); is part of the EventListener. Where should I move that line to? Should it be between the pickupCallTrace.addEventListener("ended"),and the function() {timeoutHowler(); lines?
  14. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    Yes, pickupCallTrace.play(); is part of the EventListener. For some reason I thought there was supposed to be a } at the beginning of the "else" line. Is it supposed to go at the end instead?
  15. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    1. Is this right? } else 2. How about this? pickupCallTrace.addEventListener("ended"), 3. Is this right? function() {timeoutHowler(); }
  16. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    How's this code? case "*57": var randNum57=Math.random()>=0.5; if(randNum57){ var pickupCallTrace=new Audio('callResponses/trace3-xxx-fleet.mp3'); } else { var pickupCallTrace=new Audio('callResponses/trace-xxx-fleet.mp3')...
  17. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    So is the "hint hint hint" part where I'm supposed to put the "break;" code?
  18. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    I'm not sure. That's where I'm confused.
  19. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    Here's an error I've never experienced before. On Line 462:12, it says there's an "unlabeled break, must be in a loop or switch". Here's the code up to that point. case "*57": var randNum57=Math.random()>=0.5; if(randNum57){ var...
  20. Annabelle5893

    Playing Audio Using Keystrokes: Is It Possible?

    In one of your comments, you say, "One of those two belongs here". Are you saying there shall be two } after the "TimeoutHowler.play" statement? Or are you referring to the } on a line by itself? You say "hint", but I'm confused as there are a few instances of that.
Back
Top Bottom