This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes ajax and embed tag attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "ajax and embed tag attributes" Watch "ajax and embed tag attributes" New topic

ajax and embed tag attributes

Ameet Topare

Joined: Jul 22, 2008
Posts: 10

in my jsp i have embed tag playing mp3 file.
when user click on next button, ajax resposnses with next mp3 file.

now when i replace src of embed tag, the next mp3 file is not played.

i am replacing the complete innerhtml of span tag with ajax response.

<span id="mpHtml">
<embed ...... </embed>
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Why are you changing the entire html and not just the src of the embed tag?

It is sorta covered in the JavaRanch Style Guide.
subject: ajax and embed tag attributes
Similar Threads
Play video file using servlet
problem with accessing mp3 file in tomcat
Play a MP3 file.
Embed tag question
Embedding a applet in my website