OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loading media from XML file

Hello all, I'm just starting to learn XML and am already having some

I have a VERY SIMPLE XML file called test01.xml, which contains a list
of file names for slides and respective narration files (wma):
<?xml version="1.0"?>


	<!-- slide 1 -->
	<!-- slide 2 -->
	<!-- slide 3 -->
	<!-- slide 4 -->
	<!-- slide 5 -->


I also have a simple HTML file that calls these slides and narrations,
one by one when the user clicks on the next or previous slide buttons.
The slides (graphics) always work correctly, but the audio files don't,
it's always loading the same file, the first narration.

I decided to display the file names on the page to check what's going
on, and every time I click on the next slide button, the name of the
first narration files flashes quickly on the page, then the correct file
name shows up. But by that time, the first file is already loaded and

Why? What am I doing wrong?
<script language="JavaScript">

function movenext()
if (xmldso.recordset.absoluteposition < xmldso.recordset.recordcount)

function moveprevious()
if (xmldso.recordset.absoluteposition > 1)


<xml src="test01.xml" id="xmldso" async="false"></xml>

    <td><img src=<span ID="image" datasrc="#xmldso"

      <OBJECT ID="MMPlayer1" WIDTH=470 HEIGHT=70
cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player
components..." type="application/x-oleobject">
      <PARAM NAME="FileName" VALUE=<span ID="audio" datasrc="#xmldso"
      <PARAM NAME="ShowControls" VALUE="1">
      <PARAM NAME="ShowStatusBar" VALUE="1">
      <PARAM NAME="ShowDisplay" VALUE="0">
      <PARAM NAME="Autostart" VALUE="1">
      <Embed type="application/x-mplayer2"
lt.asp" src=<span ID="audio" datasrc="#xmldso" datafld="audio"></span>
Name=MMPlayer1 Autostart=1 ShowControls=1 ShowDisplay=0
ShowStatusBar=1DefaultFrame="Slide" width=470 height=70>

<input type="button" value="Next Slide" onclick="moveprevious()">
<input type="button" value="Prev Slide" onclick="movenext()">
<br><span ID="graphic" datasrc="#xmldso" datafld="image"></span>
<br><span ID="narration" datasrc="#xmldso" datafld="audio"></span>


I'd really appreciate ANY help!!!!  I can send the gif and wma media
files in case somebody needs it.

Thanks!!! ;-)

ICQ: 9618920