Loading a node as a pop up window

Joined: 12/08/2008
User offline. Last seen 2 years 10 weeks ago.

I have a list of sermon audio with download and listen links, I would like the listen link to load a small pop up window of just a simple node that has the SWF tools audio player embedded. Not really sure how to go about it. Also, what is the best way on download links to force a download instead of the media opening in your browser?

-jamie

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
User offline. Last seen 21 weeks 6 days ago.
Couple Things

First, forcing a download can be a tough thing. For most browsers you need to set the headers so the Content-Disposition is as an attachment. This won't always work. Some browsers are still a little nutty.

For a pop-up window first start with a window that just shows a player. A simple page that does this. You can build it as a view, custom module, or something else. Then use a little javaScript to cause it to pop-up as a sized window.

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

Joined: 12/08/2008
User offline. Last seen 2 years 10 weeks ago.
I understand how to force a

I understand how to force a download and create pop-ups, I just don't know how to implement it correctly in drupal. I guess I should have been more clear. I was just wondering if there was a tried and true method established in drupal for it.

For example, I have a php script that I use often that will force a download on an mp3, I just send it the file name and type. I just wasn't sure how to get the info to it from drupal, ie: type, file name, etc.

Same for the player, I can easily put a player in a pop window but i really don't understand how to have the swftools player in the pop up playing the correct file.

I'm still very noobish on drupal.

Thanks,
Jamie