Re: [PHP] Closing my Window after Download

2004-09-01 Thread John Holmes
From: "PHP Junkie" <[EMAIL PROTECTED]> But anyhow, thanks a ton, I needed this real bad and now that I got it I feel stupid that I didn't make this sense myself. But then again, once in a while you need a hit on the head with a mallet just like this. Well, someone did say the same thing as I did s

Re: [PHP] Closing my Window after Download

2004-09-01 Thread PHP Junkie
Ave, Oh My Gosh! You did it!! Gosh! I can't believe you solved it. And well, I don't know when this was "explained" to everyone but if you actually search the internet and try and lookup what I was trying to do, you'll find, as I found, a lot, and I mean a "LOT" of people with the exact same probl

Re: [PHP] Closing my Window after Download

2004-09-01 Thread John Holmes
From: "PHP Junkie" <[EMAIL PROTECTED]> Which page do you give this code in? For example, I have a page admin.php Therein is the link on which, when a user clicks, a window "admin_dl.php" opens. The "admin_dl.php" contains my force-download code and it is that window that I'm trying to close.

Re: [PHP] Closing my Window after Download

2004-09-01 Thread PHP Junkie
Ave, Which page do you give this code in? For example, I have a page admin.php Therein is the link on which, when a user clicks, a window "admin_dl.php" opens. The "admin_dl.php" contains my force-download code and it is that window that I'm trying to close. If I specify this following code

Re: [PHP] Closing my Window after Download

2004-08-31 Thread Stut
On Tue, 31 Aug 2004 16:56:18 -0400, PHP Junkie <[EMAIL PROTECTED]> wrote: > Indeed, it didn't work. Anymore suggestions? I've got a couple of ideas, but I really think you're making life too hard for yourself. You might want to rethink what you're trying to do rather than creating a clunky solutio

Re: [PHP] Closing my Window after Download

2004-08-31 Thread PHP Junkie
Ave, Indeed, it didn't work. Anymore suggestions? On 8/31/04 2:09 PM, "Jasper Howard" <[EMAIL PROTECTED]> wrote: > try this, after you force download of the file, use: > > header("Location: close_window_script.php"); > > where the only code in that file is something like this: > > > <

Re: [PHP] Closing my Window after Download

2004-08-31 Thread Curt Zirzow
* Thus wrote Jasper Howard: > try this, after you force download of the file, use: > > header("Location: close_window_script.php"); > > where the only code in that file is something like this: > > > > > > > this is a total workaround, but since its the only thi

Re: [PHP] Closing my Window after Download

2004-08-31 Thread Jasper Howard
try this, after you force download of the file, use: header("Location: close_window_script.php"); where the only code in that file is something like this: this is a total workaround, but since its the only thing in the document, its very possible that it'll work, i

Re: [PHP] Closing my Window after Download

2004-08-31 Thread PHP Junkie
Ave, I didn't quite understand what you meant. The kind of files being saved by this script range from ZIP files to DBF files to JPG files etcetera. Where will the HTML be in those saved files? Any suggestions on what I need to do to make this work? On 8/30/04 8:31 PM, "Curt Zirzow" <[EMAIL PR

Re: [PHP] Closing my Window after Download

2004-08-31 Thread PHP Junkie
Ave, I hear you... Even I feel it's a different problem but I don't know what. My first thought was that HTML or anything doesn't work after the Force-Download script in general But since you seem to use it, I guess it does. Now I don't know what to do, how to make it work. I can't understand

Re: [PHP] Closing my Window after Download

2004-08-30 Thread Curt Zirzow
* Thus wrote PHP Junkie: > Ave, > > It still doesn't work. Not only that, I put up a "close window" button in > the page and even that doesn't show up. Although that's still not what I > want. What I want is the window to close automatically. > > Here's my page: > > $file = "$P/$F"; > header("C

Re: [PHP] Closing my Window after Download

2004-08-30 Thread Jasper Howard
if you're not getting any html after your php script, then there's a different problem. I do the same thing and all I use is: and I've never had a problem with it not closing... -- -->> Jasper Howard ::

Re: [PHP] Closing my Window after Download

2004-08-30 Thread PHP Junkie
Ave, It still doesn't work. Not only that, I put up a "close window" button in the page and even that doesn't show up. Although that's still not what I want. What I want is the window to close automatically. Here's my page: D/L Window function close_opener() { pare

Re: [PHP] Closing my Window after Download

2004-08-26 Thread Miles Thompson
At 09:14 AM 8/26/2004, PHP Junkie wrote: Ave, Trust me John, I would not post here without trying out "many" javascript functions first. In fact, the reason I posted here is because I began to think that a PHP script like that won't allow the window to close, because from window.close() to self.clo

Re: [PHP] Closing my Window after Download

2004-08-26 Thread PHP Junkie
Ave, Trust me John, I would not post here without trying out "many" javascript functions first. In fact, the reason I posted here is because I began to think that a PHP script like that won't allow the window to close, because from window.close() to self.close() to various "Timeout & Close" scrip

Re: [PHP] Closing my Window after Download

2004-08-24 Thread John Nichel
PHP Junkie wrote: Ave, The browser window which launched the Save As window... PHP cannot do this. You'll have to use JavaScript in the browser window. Something like window.close(); -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing Lis

Re: [PHP] Closing my Window after Download

2004-08-24 Thread PHP Junkie
Ave, The browser window which launched the Save As window... On 8/24/04 1:41 PM, "John Nichel" <[EMAIL PROTECTED]> wrote: > PHP Junkie wrote: >> Ave, >> >> I use the PHP Header directives to create a page which would force-download >> the file for the user... >> >> > $file = "$P/$F"; >> hea

Re: [PHP] Closing my Window after Download

2004-08-24 Thread John Nichel
PHP Junkie wrote: Ave, I use the PHP Header directives to create a page which would force-download the file for the user... What I want is to have this window close automatically once it's launched the Save As Dialog Box ... I tried several javascript window.close(), self.close() functions but non

Re: [PHP] Closing my Window after Download

2004-08-24 Thread John Holmes
From: "PHP Junkie" <[EMAIL PROTECTED]> Anyone's got any tips for me? Find a JavaScript list? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Closing my Window after Download

2004-08-24 Thread PHP Junkie
Ave, I use the PHP Header directives to create a page which would force-download the file for the user... What I want is to have this window close automatically once it's launched the Save As Dialog Box ... I tried several javascript window.close(), self.close() functions but none of them seem