Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 29th, 2006, 12:18 PM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Drop Down options to select stream for Listener

I was looking for some help with a script.

Here is the basic concept and as always have idea but cannot implement with the script.

Here is what I have for the code

the dropdown script will be

Code:
<form action="player.htm" name="stream_selector" method="post">
<select name="s" class="stream_ddm" onchange="stream_selector.submit()">
<option> </option>
<option value="64.asx"     > &raquo; unreg</option>
<option value="prem.asx"  > &raquo; prem</option>
</select>
</form>
where player.htm is the file where this entire script is

here is the player script where the stream value will show

Code:
<PARAM NAME="FILENAME" VALUE="??value??"> // where I have call to show either 64.asx or prem.asx with OnChange
<PARAM NAME="AllowChangeDisplaySize" VALUE="1">
<PARAM NAME="AnimationAtStart" VALUE="0">
<PARAM NAME="AutoStart" VALUE="1">
<PARAM NAME="Autosize" VALUE="0">
<PARAM NAME="Width" VALUE="200">
<PARAM NAME="Height" VALUE="15">
so basically when trying to call the option selected in the form dropdown to be inserted in the wmp script.

... so when 64.asx is selected, then

Code:
<PARAM NAME="FILENAME" VALUE="64.asx">
or when, prem.asx is selected it will play

Code:
<PARAM NAME="FILENAME" VALUE="prem.asx">
My knowledge on scripting is very limited and would rate 1 out of 10 so please be gentle and help to provide as much details with the script.

TIA.









Similar Threads
Thread Thread Starter Forum Replies Last Post
delete options from a drop down crmpicco Javascript How-To 5 July 21st, 2008 05:37 AM
IE 7 form select options harpua HTML Code Clinic 0 May 9th, 2007 11:59 PM
adding options to a select element dymanicly StevesonD Javascript How-To 0 September 28th, 2006 09:53 AM
How do I restrict options with Select Case jdyates Classic ASP Basics 3 August 3rd, 2004 02:55 PM
Select Options ~ "multiple" attribute phungleon SQL Server 2000 2 July 21st, 2004 10:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.