if any one can help me with this problem I would be so grateful as Ive been stuck on it for over a week now ....
basically i want the user to select a file from a drop down box and then this will then pass the file name to the player which takes in filename as one its parameters...
i know the update needs to assigned to an onChange() handler but i dont know how to access the <objects> parameters....
heres my code.. ive tried writing a function which returns the string in the drop down box but i dont know how to pass it to the the objects parameters...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<script language="JavaScript">
<!--
function changeFile(the_file)
{
var the_url = the file;
return the_url;
/*This is just returning a value but I
* want it to update the parameter "FileName" value
* to the item in the drop down box
*/
}
//-->
</script>
</head>
<body>
<h2>Playing The Object</h2>
<form name="the_form">
<select name="choose_file"
onChange="changeFile(window.document.the_form.choose_file.
options[selectedIndex].text);">
<option selected>loop1.wav
<option>loop2.wav
</select><BR><BR><BR>
<object height="13.5%" width="25%" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" >
<param name="AutoStart" value="1" />
<param name="FileName" value="loop1.wav" />
// How do I access this value parameter above??
</object>
</body>
<script language="JavaScript">
<!--
window.open = SymRealWinOpen;
//-->
</script>
</html>
thanks
mark
basically i want the user to select a file from a drop down box and then this will then pass the file name to the player which takes in filename as one its parameters...
i know the update needs to assigned to an onChange() handler but i dont know how to access the <objects> parameters....
heres my code.. ive tried writing a function which returns the string in the drop down box but i dont know how to pass it to the the objects parameters...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<script language="JavaScript">
<!--
function changeFile(the_file)
{
var the_url = the file;
return the_url;
/*This is just returning a value but I
* want it to update the parameter "FileName" value
* to the item in the drop down box
*/
}
//-->
</script>
</head>
<body>
<h2>Playing The Object</h2>
<form name="the_form">
<select name="choose_file"
onChange="changeFile(window.document.the_form.choose_file.
options[selectedIndex].text);">
<option selected>loop1.wav
<option>loop2.wav
</select><BR><BR><BR>
<object height="13.5%" width="25%" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" >
<param name="AutoStart" value="1" />
<param name="FileName" value="loop1.wav" />
// How do I access this value parameter above??
</object>
</body>
<script language="JavaScript">
<!--
window.open = SymRealWinOpen;
//-->
</script>
</html>
thanks
mark