Re: [PHP] JS alert that links to a file

2009-07-27 Thread Skip Evans
Hey all, With LinuxMan's help I got this working. It was a bit tricky as it's an AJAX environment, but what I did was create a separate page with code similar to what he has below and then call it from the JS side and it works great. Thanks all, and especially LinuxManMikeC for the key! Ski

Re: [PHP] JS alert that links to a file

2009-07-26 Thread Jim Lucas
Skip Evans wrote: LinuxManMikeC wrote: Okay, right, I remember this. But it has to be in it's own file, otherwise you get the 'headers already sent error', right? Is there any way around that? Any way to get it right at the end of where the file is created??? Thanks! Skip No, what

Re: [PHP] JS alert that links to a file

2009-07-26 Thread Skip Evans
LinuxManMikeC wrote: Okay, right, I remember this. But it has to be in it's own file, otherwise you get the 'headers already sent error', right? Is there any way around that? Any way to get it right at the end of where the file is created??? Thanks! Skip -- ==

Re: [PHP] JS alert that links to a file

2009-07-26 Thread LinuxManMikeC
On Sun, Jul 26, 2009 at 8:55 PM, Skip Evans wrote: > Okay, I know I've done this before, but now I'm blanking out. > > I have code that creates a CSV file, and when it's done I want a JS alert to > pop up and let them save the file. > > Isn't this some kind of alert() type call on the JS side??? >

Re: [PHP] JS alert that links to a file

2009-07-26 Thread Paul M Foster
On Sun, Jul 26, 2009 at 09:55:14PM -0500, Skip Evans wrote: > Okay, I know I've done this before, but now I'm blanking out. > > I have code that creates a CSV file, and when it's done I want > a JS alert to pop up and let them save the file. > > Isn't this some kind of alert() type call on the JS

[PHP] JS alert that links to a file

2009-07-26 Thread Skip Evans
Okay, I know I've done this before, but now I'm blanking out. I have code that creates a CSV file, and when it's done I want a JS alert to pop up and let them save the file. Isn't this some kind of alert() type call on the JS side??? I know I've done this before and I've been on Google an hou