here’s the breakdown …
-open this URL in a new window: [URL=http://www.devaswami.net/audio.php]audio page
–
this is a dynamic page that reads from a text file database (i’m too lazy to learn mySQL)
the dynamically generated links that say ‘listen’ run an ‘onClick’ that in turn runs a function that opens a pop-up and passes a few variables.
these variables are passed into flash and the actionscript displays some of these in empty text fields. one variable is a URL for an mp3 that starts to stream.
miraculously i got this working with few bumps.
the javascript on the calling page does fine in checking if the window is open or not. if its open then it just passes a new url with parameters to it. the variables make it into flash and the audio kicks in just fine.
if its closed then the popup script opens a new window and passes the stuff to it.
– the problem i’ve come across is the most perplexing issue i’ve dealt with in my short 2 year stint writing scripts …..
after the pop-up window is opened and closed a few times the original page that opens it has problems. for some unfathomable reason the download links die. the listen links still open a popup and the variables are passed but the audio wont stream. freaky!!!
if it was a coding issue then I assume it would have never worked in the first place. the funny thing is that it will open the pop up and stream audio twice before the links go funny. ?
if i refresh the browser page the php re-assembles the page but the links are still inactive.
if i close the browser window and restart IE and return to the original URL it works again but only a few times before the same problem happens. is this a browser issue that requires a workaround in javascript???
,
ekendra :rolleyes: