permaculture playing cards
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
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: 15385
Why are you changing the entire html and not just the src of the embed tag?

I agree. Here's the link:
subject: ajax and embed tag attributes
It's not a secret anymore!