i have a page in joomla that i am generating a pdf off of using the pdfmyurl service. to call the service you click a link. ie:
<a href="http://pdfmyurl.com?url=http://mywebsite.com/mypage&-R=0mm&-L=10mm&-s=Letter&--print-media-type&--footer-line&--filename=myfilename.pdf">click to generate pdf</a>
so you click a link on the main page which opens a "pdf-able" page in a popup window which then has a link to the above. (this is how joomla operates with printing pages).
this all works perfectly. but, i would like to close the popup when the link is clicked but AFTER the pdf is generated. if i use onclick="window.close();" method in the link the window closes before the pdf is generated.
i would like to solve this using jquery.