hampster
06 May 2009, 07:41 PM
I would like to use information in a form to create a pdf file in a popup window. I created a method outlined as follows:
use window.open to create a new window
use "document.write" to create a form populated with hidden elements in the popup. The values of these elements are set from the parent window.
the parent window then calls submit() on the popup window's form.
This works, but not with Safari, and it seems like a rather clumsy solution.
It does appear that target-"_blank" has been de-depreciated in html5, but this doesn't seem to work yet either- as there is no formal DTD for html5. Is there a more elegant/simple method out there?
Any help would be appreciated.
--Dave
use window.open to create a new window
use "document.write" to create a form populated with hidden elements in the popup. The values of these elements are set from the parent window.
the parent window then calls submit() on the popup window's form.
This works, but not with Safari, and it seems like a rather clumsy solution.
It does appear that target-"_blank" has been de-depreciated in html5, but this doesn't seem to work yet either- as there is no formal DTD for html5. Is there a more elegant/simple method out there?
Any help would be appreciated.
--Dave