Ajax Talk - Asynchronous javascript and xml discussion board
 FAQ   Search    Usergroups      Register   Profile   Check your messages   Log in 
Signup now to enjoy a range of free membership advantages !!
Ajax Talk - Moderators Wanted
Ajax Video Container

 
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> General discussion
View previous topic :: View next topic  
Author Message
Ajax
New one
New one


Joined: 22 Jun 2006
Posts: 2

PostPosted: Sun Aug 13, 2006 2:24 pm    Post subject: Ajax Video Container Reply with quote

Hello all

I was wondering if someone can help me with my ajax video container? I am trying to build a little application that uses ajax to update and play a list of video clips. The first problem I ran into was getting the videos clips to interchange once a selection is made from the list. I used the onclick() event to capture the new files name in the <a href= > statement, then sent the new file name to my 'ChangeVideo' function, which assigned the new <Player1.URL = "CountDown.wmv";statement>

Here is the main codes (how can I attach the files to this post?):


<SCRIPT language = "JavaScript" for = "window" event = "onload">
<!--
Player1.closedCaption.captioningID = "CapText";
Player1.closedCaption.SAMIFileName = "fun.smi";
Player1.closedCaption.SAMILang = "English Captions";
Player1.closedCaption.SAMIStyle = CCStyle.value;
Player1.URL = "fun.wmv";
Player1.Author =" "
-->
</SCRIPT>

<script type = "JavaScript">
function ChangeVideo(VideoFileNameChanged){
document.Player1.URL = "VideoFileNameChanged";
document.Player1.closedCaption.SAMIFileName = "CountDown.smi";
document.Player1.autostart = "true";
}
</Script></head>


Can you tell me what I am doing wrong?
<OBJECT classid = clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6
height = 260 id = Player1 width = 273>
<param name = "AutoStart" value = "-1">
<param name="URL" value>
<param name="rate" value="1">
<param name="balance" value="0">

</OBJECT>

<DIV style = "width:276;height:52; background-color:black"; id = CapText></DIV>
<p>
<SELECT id = "CaptionsStyle" language = "JScript" name = "CCStyle" onchange = "Player1.closedCaption.SAMIStyle = CCStyle.value">
<OPTION selected value = SmallTxt>Small Text
<OPTION value = BigTxt>Big Text
</SELECT> </p>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> General discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 Advertisements
 XML & Copyright Notice 
    


Powered by phpBB © 2001, 2005 phpBB Group

What is according to Wikipedia: Ajax Web2.0 XML E4X


Link to our site:

  


del.icio.us digg spurl wists simpy newsvine blinklist furl blogmarks yahoo! myweb smarking ma.gnolia segnalo reddit fark technorati cosmos


Normal Bookmark


Partner Button Links:
Codecrunch.com: Webmaster Tutorials    One Ajax


Partner Text Links:
quomon | web20log | ajaxmatters | tableless | 456bereastreet | music charts | gift ideas | competitions | free xbox 360 | link trade ?


Credits:
it consultancy & project management lead generation zoekmachine optimalisatie steal these buttons seo expert