Yes. It doesn’t matter at all where they come from. All I did was make a separate DIV (HTML box) for each movie, gave them all a common classname, so I could act on them as a group (class=“video”), and then hid them all and show one with JavaScript. The values in the picking list are set to the ID of the video, and the labels are set to the human-readable name of the video.
The JavaScript is slightly complicated by the fact that I decided to provide a way for a URL to show a particular movie, so it could be a lot less complex if you didn’t need that feature. I also added some guard code to pause all the movies when you switch to another, so you don’t end up with multiple videos playing at once.
If you had all the movies at YouTube, then I would be tempted to put the YouTube iframe player in the page, and then swap out the src attribute of the iframe using this script. That would have the added benefit that you wouldn’t have ten video tags in the page – it would load a lot quicker. You would just need to figure out from the URL (which would become the value of the picker option) which video they were reviewing – sort of an eye test, I’m afraid.
Walter
On Feb 27, 2014, at 7:41 PM, Walter Lee Davis wrote:
Here’s the thing. If you really want this page to be usable, combine the choice of the movie into your form. That way you have only one form, and only one (visible) video on the page at a time. When the visitor chooses a movie to review, that choice is made a part of the submitted form automatically.
I didn’t bother to make 10 different videos – I just renamed one – but here, take a look at this:
Many Movies to Rate
You can also target a particular movie like this:
Many Movies to Rate
All the scripting is inline, so view source to see what’s going on here. If you submit the form, you’ll see what the form submission would look like (I pointed it at the Reflector).
Walter
On Feb 27, 2014, at 6:43 PM, Hoffkids wrote:
Gonna get to work on it.
Thanks
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options