This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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
jQuery in Action, 3rd edition