Hey,
Let me assume that you're using AJAX, and not doing an actual form submit [1].
First of all, we do not know all of what is returned when you send the
HTTP request. There seems to be a JavaScript function that is handling
the response, by only displaying "Report printed successfully:
abcd.txt" in the popup window. Did you write this function? And can
you modify it? If you can, then this is where you should put the code
to handle the response to do whatever you want, assuming the HTTP
response includes all the data you need.
For reference, check this out:
<https://developer.mozilla.org/en-US/docs/AJAX/Getting_Started>.
[1] <https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement.submit>
Joseph.
On Fri, Dec 20, 2013 at 3:59 PM, Bwana Lawi <mail2lawi@gmail.com> wrote:
> Thanks Steve,
>
> I am actually interested in the first part of your answer. The use of ajax
> to get the contents of the response.
>
> The response, in this case, "Report printed successfully: abcd.txt" comes as
> the body of the popup window.
>
> Meaning I somehow have to access that window and read the content.
> Extracting the filename string is easy, dont worry about that
>
>
> _______________________________________________
> skunkworks mailing list
> skunkworks@lists.my.co.ke
> ------------
> List info, subscribe/unsubscribe
> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
> ------------
>
> Skunkworks Rules
> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
> ------------
> Other services @ http://my.co.ke
_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke