View Single Post
Old 09-25-2012, 01:30 AM   PM User | #8
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,210
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
If you are not using jQuery for other things on the page, it's not worth dragging in that whole library for something as simple as this.

Code:
// use AJAX to start creation of the new PDF
var http = window.XMLHttpRequest != null 
            ? new XMLHttpRequest() 
            : new ActiveXObject("Microsoft.XMLHTTP");
http.open("GET","index.php?module=Patient_Procedure&action=genMFGPO'&pomode=create&kindofpo=Z",true);
http.send( ); 
// ignore the asynch response

// then just change the current popup to the new location:
location.href = "index.php?module=Patient_Procedure&action=genMFGPO&pomode=preview";
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote