ASP Querystring issue for Media Player

Ok... I'm trying to pass the parameter to an embedded media player on my website.   However, I can get the parameter to pass but can't seem to get the player to play the file.

<a href="#" onclick="window.open('test2.aspx?mediafile=LR04-02-2011.mp3', 'StatusBar', 'toolbar=no,resizable=no,scrollbars=yes,width=250,height=300,left=0,top=0');" title="tool tip">
<img alt="" class="style13" height="60" src="BluePlayButton.png" width="66"  /></a>

Open in new window


The mediafiles are stored in the same subdirectory on the site, so I didnt' think I needed to add anything else to querystring.

on the recieving aspx page the I have the following embedded control

<OBJECT ID="mediaPlayer"
  CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" style="height: 26px; width: 220px">
  <PARAM name="autoStart" value="True">
  <param name="URL"     value="<%=Request.QueryString("mediafile")%>">
  <param name="filename" value="<%=Request.QueryString("mediafile")%>" />

  <param name="uiMode" value="mini">
  <EMBED type='application/x-mplayer2' 
         pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' 
         id='mediaPlayer' 
         name='mediaPlayer'
         displaysize='0'
         autosize='0'
         bgcolor='darkblue'
         showcontrols='1'
         showtracker='0'
         showdisplay='0'
         showstatusbar='1'
         videoborder3d='0'
         autostart='1'
         designtimesp='5311'
         loop='0'>
  </EMBED>
</OBJECT>

Open in new window


Your welcome to look at the site to see it in action.  www.lighthouseretirement.com under the radio show tab.   I just can't seem to get this to work.    Need some help.
LVL 2
C_ParlatoAsked:
Who is Participating?
 
C_ParlatoConnect With a Mentor Author Commented:
add  onclick="javascript:window.open to my hyperlink and it works great...


go figure.

0
 
C_ParlatoAuthor Commented:
No one answered me fast enough.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.