Click here to Skip to main content
15,894,343 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionRe: how to fire multiple textbox in javascript Pin
Shameel23-Jul-11 23:53
professionalShameel23-Jul-11 23:53 
QuestionIdea [modified] Pin
Fazel063120-Jul-11 1:44
Fazel063120-Jul-11 1:44 
AnswerRe: Idea Pin
Richard MacCutchan20-Jul-11 2:36
mveRichard MacCutchan20-Jul-11 2:36 
QuestionComparing a list of word against a line Pin
nitin_ion18-Jul-11 18:45
nitin_ion18-Jul-11 18:45 
AnswerRe: Comparing a list of word against a line Pin
lorenkins24-Jul-11 4:12
lorenkins24-Jul-11 4:12 
QuestionHow to get file size without using ActiveX Pin
Sudhanshu Mani Tripathi14-Jul-11 0:14
Sudhanshu Mani Tripathi14-Jul-11 0:14 
AnswerRe: How to get file size without using ActiveX Pin
Pete O'Hanlon14-Jul-11 0:28
mvePete O'Hanlon14-Jul-11 0:28 
QuestionHow to change the "src" value in a <embed> using javascript function ? Pin
LockedOut13-Jul-11 7:28
LockedOut13-Jul-11 7:28 
Hey i was designing a website which plays a no of music station live. For this i used the Media Player for website and setted its src ='http://www.bollywoodhungama.com/scripts/bollywoodhungama.asx'

Now i want to have Buttons through javascript and want that if a user click on the buttons than that particular channel should be switched.

<HTML>
<HEAD>
<script type="text/javascript">
  
    function change()
   {
   window.location.reload();
     function chg()
      {
      document.getElementById("myplayer").setAttribute("src", "mms://216.185.43.237/radiocity 1");
      }
   }
   
  
  
</script>  

</HEAD>
<body>    
<embed id="myplayer" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1"  showstatusbar="true" enablecontextmenu="false" autostart="false" width="320" height="60" loop="false" src="http://www.bollywoodhungama.com/scripts/bollywoodhungama.asx " />
</embed> 

<input type='button' onclick='change()' value='Change'/>

</body>
</HTML>


Here i have used this Change() function to reload the page so that the station should stop playing. and now here i have added function chg() inside this and i want that after reload the src value should get changed and on starting the player another station should start playing.

But this is not working ?

Is it possible to change the src to new value after page reload ?

Please suggest.

All i want is that the "src" value should get change anyhow.....and one should be able to switch playing stations.
AnswerRe: How to change the "src" value in a using javascript function ? Pin
csharpbd13-Jul-11 9:28
professionalcsharpbd13-Jul-11 9:28 
GeneralRe: How to change the "src" value in a using javascript function ? Pin
LockedOut13-Jul-11 15:04
LockedOut13-Jul-11 15:04 
AnswerRe: How to change the "src" value in a using javascript function ? Pin
twseitex15-Jul-11 9:04
twseitex15-Jul-11 9:04 
GeneralRe: How to change the "src" value in a using javascript function ? Pin
cjoki18-Jul-11 10:57
cjoki18-Jul-11 10:57 
Questionjavascript html xml Pin
Bala811-Jul-11 22:05
Bala811-Jul-11 22:05 
AnswerRe: javascript html xml Pin
DaveAuld11-Jul-11 22:48
professionalDaveAuld11-Jul-11 22:48 
QuestionFlash plugin install Pin
anishkannan11-Jul-11 20:52
anishkannan11-Jul-11 20:52 
AnswerRe: Flash plugin install Pin
Viral Upadhyay12-Jul-11 8:38
Viral Upadhyay12-Jul-11 8:38 
AnswerRe: Flash plugin install Pin
twseitex12-Jul-11 11:20
twseitex12-Jul-11 11:20 
Questionhow to add minimize and maximize buttons in a dfd in my company intranet Pin
Dan muli8-Jul-11 5:15
Dan muli8-Jul-11 5:15 
AnswerRe: how to add minimize and maximize buttons in a dfd in my company intranet Pin
Shahriar Iqbal Chowdhury/Galib8-Jul-11 10:49
professionalShahriar Iqbal Chowdhury/Galib8-Jul-11 10:49 
GeneralRe: how to add minimize and maximize buttons in a dfd in my company intranet Pin
Dan muli8-Jul-11 20:41
Dan muli8-Jul-11 20:41 
AnswerRe: how to add minimize and maximize buttons in a dfd in my company intranet Pin
Shameel11-Jul-11 21:42
professionalShameel11-Jul-11 21:42 
GeneralRe: how to add minimize and maximize buttons in a dfd in my company intranet Pin
Dan muli11-Jul-11 21:54
Dan muli11-Jul-11 21:54 
GeneralRe: how to add minimize and maximize buttons in a dfd in my company intranet Pin
Shameel12-Jul-11 3:45
professionalShameel12-Jul-11 3:45 
GeneralRe: how to add minimize and maximize buttons in a dfd in my company intranet Pin
Pete O'Hanlon12-Jul-11 4:40
mvePete O'Hanlon12-Jul-11 4:40 
GeneralRe: how to add minimize and maximize buttons in a dfd in my company intranet Pin
Shameel12-Jul-11 8:34
professionalShameel12-Jul-11 8:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.