Win a copy of Functional Design and Architecture this week in the Functional programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Downloading songs in same window

 
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a web page that links to some mp3 files in my server. I also have a flash component in the same page that calls a javascript in the page on some event(say a push button).
Now when I click to download an mp3 in the same window, my default player gets opened and plays the mp3. Fine. But when i click the flash button, the javascript is not getting called. My page turns blank with the address bar showing javascript:myfunctionname and I get the error warning in the status bar instead of "Done".
So, I think the problem is due to the mp3 being opened in the same window. My feeling is that since the response is an mp3 in the same window and being opened in my default player, the HTML page that is still visible is unable to execute the scripts. This sounds strange but I was able to solve my problem by opening the mp3 in a new window.
So, to put it in simple words, what happens when the response is thrown back to the main window but opens some other application... Will I still be able to execute actions from the page present in the main window? Or is this a problem with Flash???
Regards.

p.s. BTW this happens only with IE. Works OK with mozilla, netscape
[ May 23, 2004: Message edited by: shankar vembu ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic