I have a Sharepoint 2003 page that displays some database information. One of the fields is a numerical value of 0, 1, 2, 3 etc...etc...
The user wants a sound file to be played when the value changes from 0 to anything else. This is a calls on hold field, so when a customer calls in and gets put on hold the field reflects the number of calls that are currently on hold. most of the time it is 0.
I have it currently setup to change colors of the field when the number is > 0 however, I cannot figure out how to call a wav file which is located on the web server.
I have attached the code I am currently using. This codes works perfectly for changing colors, I just cannot seem to call the sound file.
I have the URL to the sound file on the web server, if I go directly to that URL it plays the file. Also if I create a button that calls the wav file it will play, the xsl:if statement is where I have the issue.
Thanks for your help. Chris.
<xsl:if test="number(@callsonhold) = '0'">background-color: #00FF00;</xsl:if>
<xsl:if test="number(@callsonhold) > '0'">background-color: #FF0000; border: thick solid #0000FF; text-decoration: blink;</xsl:if>
<xsl:value-of select="@callsonhold" />