trids
Programmer
- Feb 23, 2001
- 21
I have a vbscript running in a page where the user provides parameters to dislpay an invoice .. and the vbscript provides the invoice in various ways depending on what the user selects, one of which is to popup a window with the invoice formatted for printing.
The invoice is built by the script on the base page, but I can't find a way to get it displayed in the popup window. I can save the entire page to a Session variable and then launch the popup window from a link tag..
And then display it in statcliprint.asp (the popup window):
But the client doesn't want the link tag to provide the popup. Instead, I need to launch the popup from the vbscript that builds sHTML (as a result of its processing the input parameters).
So what I'm looking for is probably a way to execute from vbscript the equivalent of the javascript command: window.open('statcliprint.asp', 'windowname'). To this end, I have set up a javascript function and tried to call it from the vbscript
.. but I get an error from vbscript saying it can't find a variable called brandedpopup.
Please help - am I missing something obvious, or do I have to be more devious?
The invoice is built by the script on the base page, but I can't find a way to get it displayed in the popup window. I can save the entire page to a Session variable and then launch the popup window from a link tag..
Code:
<-- the base page -->
<% Session("statcli_branded") = sHTML %>
<A href="statcliprint.asp" target="_new" title="Logos and Footers">Print Format</A>
Code:
Response.write Session("statcli_branded")
But the client doesn't want the link tag to provide the popup. Instead, I need to launch the popup from the vbscript that builds sHTML (as a result of its processing the input parameters).
So what I'm looking for is probably a way to execute from vbscript the equivalent of the javascript command: window.open('statcliprint.asp', 'windowname'). To this end, I have set up a javascript function and tried to call it from the vbscript
Code:
function brandedpopup()
{
window.open('statcliprint.asp', 'blah');
return true;
}
Please help - am I missing something obvious, or do I have to be more devious?