/    Sign up×
Community /Pin to ProfileBookmark

cross window scripting renders links dead !?!?

here’s the breakdown …

-open this URL in a new window: [URL=http://www.devaswami.net/audio.php]audio page[/URL]

  • 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:

    to post a comment
    JavaScript

    0Be the first to comment 😎

    ×

    Success!

    Help @ekendra spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...