1stCome
02-03-2009, 02:58 PM
Hi -
I have a two part question.
To paint a picture of what I'm trying to accomplish - There are forms on my site that need to be filled out by the user. Once the forms are complete and saved, the user is able to select a printable view of the form, which is a static html version of the form. What I'm trying to accomplish now is getting functionality on my site that allows users to save this html file to another place on the server, instead of on their machine. Essentially, it's a makeshift "snapshot" functionality.
The function that gives the user the printable page only returns the URL to the html page:
function printURL(){
try {
var printSmartForms = "SuperDuperWebsite/Project/PrintForms?Project=";
var printArgs = "&PrintBySection=False&PrintHeaderView=True&PrintHeaderInfo=True&PrintPageBreak=True&PrintLogo=True";
var printURL = UrlUtils.fullUrlFromUnsURL(("") + (printSmartForms + (this + printArgs)));
printURL = "<a href=" + printURL + " target=\"_blank\">[Print View]</a>";
return printURL;
}
catch (e) {
throw(e);
}
}
The first part of my question is - can I programmatically save the page from this URL, instead of from being on the actual page?
The second part is - How exactly would I save it to the server instead of to the machine?
Thanks in advance for any input.
I have a two part question.
To paint a picture of what I'm trying to accomplish - There are forms on my site that need to be filled out by the user. Once the forms are complete and saved, the user is able to select a printable view of the form, which is a static html version of the form. What I'm trying to accomplish now is getting functionality on my site that allows users to save this html file to another place on the server, instead of on their machine. Essentially, it's a makeshift "snapshot" functionality.
The function that gives the user the printable page only returns the URL to the html page:
function printURL(){
try {
var printSmartForms = "SuperDuperWebsite/Project/PrintForms?Project=";
var printArgs = "&PrintBySection=False&PrintHeaderView=True&PrintHeaderInfo=True&PrintPageBreak=True&PrintLogo=True";
var printURL = UrlUtils.fullUrlFromUnsURL(("") + (printSmartForms + (this + printArgs)));
printURL = "<a href=" + printURL + " target=\"_blank\">[Print View]</a>";
return printURL;
}
catch (e) {
throw(e);
}
}
The first part of my question is - can I programmatically save the page from this URL, instead of from being on the actual page?
The second part is - How exactly would I save it to the server instead of to the machine?
Thanks in advance for any input.