0

Hi!

I made a page where users can listen to music (with javascrip). I add a popup where they can choose what music to play, and when they choose it, this popup window close itself, and two hidden fields get the song information. In the script (you can see it here) is one function (setTimeout('display_time()',1000)). I tryed to add code to check if two hidden fields are empty or not (I add this:

songNew=document.getElementById('songNew').value
genreNew=document.getElementById('genreNew').value
if(songNew!="") next_song('4',songNew);

First I tryed only with "songNew", but this don't work! (of course, at next_song I add:

//in function
function next_song(dir,s)
//and in this function
if(dir==4) current_song=s

But this doesn't work. Can somebody help me?

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by ivan3510
0

I found solution, but it's different, so you don't have to answer to this thread!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.