This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Continuously playing a music file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Continuously playing a music file" Watch "Continuously playing a music file" New topic

Continuously playing a music file

Kedar Dravid
Ranch Hand

Joined: May 28, 2004
Posts: 333
I have a JSP which is used for conducting a quiz (typical quiz with next, back buttons) where the questions are fetched from an XML document. The same JSP is loaded for every question. Now, I want to play a music file (WAV) every time the quiz starts. The music should not break every time the JSP is loaded. What is the solution?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410


Have one hidden frame that plays the muzak and have the JSPs in the visible frame.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63534

Moved to HTML/Javascript.

[Asking smart questions] [About Bear] [Books by Bear]
Don't get me started about those stupid light bulbs.
subject: Continuously playing a music file
jQuery in Action, 3rd edition