If you are going to replace the page with whatever comes back from an Ajax call, PDF or otherwise, what's the point of using Ajax rather than just going to the page? [ May 16, 2007: Message edited by: Bear Bibeault ]
The point is I needed to know if my child window displays a PDF field successfully. I wasnt able to figure out a way to determine if my response in the child window contained a PDF. Based on that, I needed to execute javascript in the parent window after opening the child window.
The reason I used AJAX was to wait till the response came back from the server and then I could execute the parent windows javascript.
Makes sense?
Neha Daga
Ranch Hand
Joined: Oct 30, 2009
Posts: 504
posted
0
Hi All,
My program is a simple one which takes a string and converts it to a barcode and then returns pdf file with that barcode as response.
I want to open a save as box on the browser for the user to save this barcode pdf file.
This is what I am doing:
I am using ajax for this.
but the response does not open a save as dialogue instead it shws whatever was returned as text.