Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Select Form Menu Links, Showing Content in Iframe
Old 10-20-2005, 12:46 PM Select Form Menu Links, Showing Content in Iframe
geej's Avatar
Average Talker

Posts: 25
Location: Indiana
Trades: 0
I'm creating a site which has videos to watch. I'm wanting to have select form, that shows multiple video choices at a time, but allows a user to only pick one. Then click a "Submit (Play)" button and it bring the video up in the iframe. I already have the html pages created, with the embedded video content in them, using a flash player.

I just need to figure out, how I can create basically a play list form, which will pull up the video page in the Iframe.

I can create the form. But I don't know what the Action, Method, Encoding Type, and all that needs to be.

I can put the options in there, but how do I get them to be treated as a link. Which when the play button is pressed, will pull up the link in a targeted iframe.
__________________

Please login or register to view this content. Registration is FREE
A donkey load of digital video. Including a variety of verisons of the numa numa video.
geej is offline
Reply With Quote
View Public Profile Visit geej's homepage!
 
 
Register now for full access!
Old 10-20-2005, 04:41 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
You could use JavaScript like this:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<title>Untitled Page</title>
		<script type="text/javascript"><!--
function showMovie() {
		box = document.movieForm.theMovie;
        destination = box.options[box.selectedIndex].value;
        if (destination) movieFrame.location.href = destination;	
}
//-->
</script>
	</head>

	<body bgcolor="#ffffff">
		<form id="movieForm" action="" method="get" name="movieForm" onsubmit="showMovie(); return false;">
		<select name="theMovie" id="theMovie" size="1">Choose one...
				<option>Choose One...</option>
				<option value="movie1.mpg">Movie 1</option>
				<option value="movie2.mpg">Movie 2</option>
			</select><input type="submit" name="submitButtonName" value="Play Movie">
		</form>
		<iframe id="movieFrame" name="movieFrame" src="" height="250" width="250" border="1"></iframe>
	</body>

</html>
it gets the value of the selected option, then sends that as the URL to the frame. So put your movie's url in the value and the name in between the option tags.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-20-2005, 07:46 PM
geej's Avatar
Average Talker

Posts: 25
Location: Indiana
Trades: 0
That worked great. Thanks...
__________________

Please login or register to view this content. Registration is FREE
A donkey load of digital video. Including a variety of verisons of the numa numa video.
geej is offline
Reply With Quote
View Public Profile Visit geej's homepage!
 
Reply     « Reply to Select Form Menu Links, Showing Content in Iframe
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14782 seconds with 12 queries