avihs
01-24-2005, 10:15 PM
A bit of background: I am creating a trusted internal application for a company ( you cannot browse to this site from the internet ) that uses IE6.02 for the user interface.
At one point, I am using a PERL script for printing a schedule for a number of staff. I have a PERL script developed that works great when passed a single staff_id. It opens itself, prints the page, and closes the page ( using an ActiveX control that is trusted by the users ).
Now I would like to pass this script a comma delimited list of staff IDs and have it print the 1st ID then recycle itself with the remaining ID's until all the ID's have printed.
At the moment I have a simple "self.close()" statement run at the end of the single ID version of the page that closes the window and returns control to the calling page.
My question is this, is there someway I can replace the self.close() with a statement that calls :
/url_base/scriptname.cgi?&stafflist='someone,someoneelse,yetanother'
so that the page calls itself when it closes until all the staff IDs have been printed?
at the moment, for the multi-ID version of the page I have:
function recyclepage()
{
if ( areThereMoreIDs == 'Y' )
{
document.formSchedPrint.submit();
} else {
self.close();
}
}
In this case, "areThereMoreIDs" is set based on the comma delimited stafflist variable. Each iteration, the PERL script strips the first ID from the string and sets the form variable "stafflist" to the remaining ( unprocessed ) IDs
Any help would be appreciated.
At one point, I am using a PERL script for printing a schedule for a number of staff. I have a PERL script developed that works great when passed a single staff_id. It opens itself, prints the page, and closes the page ( using an ActiveX control that is trusted by the users ).
Now I would like to pass this script a comma delimited list of staff IDs and have it print the 1st ID then recycle itself with the remaining ID's until all the ID's have printed.
At the moment I have a simple "self.close()" statement run at the end of the single ID version of the page that closes the window and returns control to the calling page.
My question is this, is there someway I can replace the self.close() with a statement that calls :
/url_base/scriptname.cgi?&stafflist='someone,someoneelse,yetanother'
so that the page calls itself when it closes until all the staff IDs have been printed?
at the moment, for the multi-ID version of the page I have:
function recyclepage()
{
if ( areThereMoreIDs == 'Y' )
{
document.formSchedPrint.submit();
} else {
self.close();
}
}
In this case, "areThereMoreIDs" is set based on the comma delimited stafflist variable. Each iteration, the PERL script strips the first ID from the string and sets the form variable "stafflist" to the remaining ( unprocessed ) IDs
Any help would be appreciated.