I generate a string in PHP with headers that write a file to the disk.
(the user is asked whether to open it or to save it).
Using AJAX, the string is written to the screen instead. What I would
like to know is how to redirect the output to not be to the screen but
to open the file (as it is without AJAX). For other output I direct the
output to a names <divtag to appear on the screen. How do I specify
the target here?
(the user is asked whether to open it or to save it).
Using AJAX, the string is written to the screen instead. What I would
like to know is how to redirect the output to not be to the screen but
to open the file (as it is without AJAX). For other output I direct the
output to a names <divtag to appear on the screen. How do I specify
the target here?
Comment