473,320 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Dynamically changing the value of an Object when user clicks a link.

Death Slaught
1,137 1GB
I'm trying to make a video player out of my users favorite videos. There's a list of links (A-Z) that drop-down on click and show the names of the videos that the user has selected. When the user clicks the link the video appears in the center of the page and begins to play. I need to do this dynamically for several reasons.

1) I have the videos preloaded and it takes up far to much space and takes forever to load.

2) You can have multiple videos playing at the same time which is rather annoying.

I'm at school right now (first day back) and don't have the time to google it so if anyone knows the answer and is feeling generous ^_^ If not don't worry about I'll look up later (I'm too lazy for my own good sometimes).

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
Aug 11 '08 #1
10 1288
acoder
16,027 Expert Mod 8TB
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("objectID").value = newValue;
?
Aug 11 '08 #2
Death Slaught
1,137 1GB
Unfortunately, it's not that simple. Each link needs to change the source to a different video. Do you want me to post what I'm using now?

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
Aug 11 '08 #3
acoder
16,027 Expert Mod 8TB
Yes, that would help make things a bit more clear.
Aug 11 '08 #4
Death Slaught
1,137 1GB
I have this working offline for now but I'm going to change it later on once it meets the proper specifications.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
Aug 11 '08 #5
Death Slaught
1,137 1GB
Sorry I just realized I didn't explain it very well. Once you look at the code it may make sense. Basically, I have a bunch of links and each link needs to change the source of the video onclick, but I need it to affect the same object.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
Aug 11 '08 #6
Death Slaught
1,137 1GB
I found what I need so thanks anyways ^_^

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
Aug 12 '08 #7
acoder
16,027 Expert Mod 8TB
What was it? Sorry didn't get a chance to look at this. Went a bit off my radar.
Aug 13 '08 #8
Death Slaught
1,137 1GB
I changed it to an embed element but I put the location of the videos in an array and used document.getElementById to change the source of the video with a variable set by the links.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")

PS - if you figure out a way to get it working with the param element please let me know because I would like to use it instead.
Aug 13 '08 #9
acoder
16,027 Expert Mod 8TB
Let's say you have a param element:
Expand|Select|Wrap|Line Numbers
  1. <param name="src" value="some.mov"> 
give it an id, then use the same method that you used for embed to change the src of the object.
Aug 14 '08 #10
Death Slaught
1,137 1GB
=D It's always something obvious... JavaScript just isn't my friend.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
Aug 14 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ehm | last post by:
I am working on creating an editable grid (for use in adding, deleting, and editing rows back to an Oracle database). I have a JSP that posts back to a servlet, which in turns posts to a WebLogic...
0
by: Diane Yocom | last post by:
I'm very new to ASP.Net and probably jumped in a little over my head, but... I'm trying to create a user control that will control navigation through my site. It's sortof like Amazon.com, where...
8
by: simon | last post by:
On code behind file: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not Page.IsPostBack Then Dim ctrl As New LinkButton ctrl.ID =...
5
by: Dennis Fazekas | last post by:
Greetings, I am creating a web form which will all the user to add an unlimited number of email addresses. Basically I have 3 buttons, "Add Another Email", "-" to remove, and a "Save" button....
9
by: netasp | last post by:
hi all, how can I populate one aspx form when page is loading based on page ID? for example: loading page A (to search for VB code) would display labels and texboxes, dropdown lists all related...
5
by: Amoril | last post by:
I've read quite a few different message on various boards and for some reason I'm still having trouble wrapping my head around this viewstate maintenance and trying to get these dynamically created...
3
by: Allen Chen [MSFT] | last post by:
Hi Richard, Quote from Richard================================================== However I also want to be able to remove the panes. I have tried to include this, but find that when I first...
0
by: zeckdude | last post by:
Hi, I am having some issues with my site. I have a main Nav with four links that load in 4 different sections. You can see the page I am working on here:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.