Friday, May 6, 2011

JavaScript to Save As with current date

I have a time sheet form named Timesheet Paperless.pdf I send this form to an employee and tell them to fill their name and employee number in the form. I then ask them to go to File>Save As and name the form INTIALS_TS.pdf . I now would like to a have button with in the form that will open a Save As dialog with the filename INITIALS_TS CurrentDate.pdf under My Documents/Work Files/Time Sheets/. So every new pay period they would click the save button on the form to save the file under the time sheets folder with their intials and the current date the button was pushed. How can I do this in JavaScript?

From stackoverflow
  • Sorry, there's no way to do that with JavaScript.

    The closest solution that comes to mind is open a link to a server-side script that outputs the PDF along with a content-disposition header.

    Content-Disposition: attachment; filename=INITALS_TS.pdf
    

2 comments:

abraheemcabezas said...

8 Casinos Near DC Casino, MD - Mapyro
10 Closest Casinos to DC Casino 순천 출장안마 in DC (Saratoga 양산 출장샵 Rd.). 의왕 출장마사지 Find 10 안성 출장안마 Closest 익산 출장안마 Casinos to DC Casino in DC (Saratoga Rd.).

thoughkug said...

look at here realistic dildo,sex toys,cheap sex toys,dog dildo,horse dildo,wolf dildo,dog dildo,cheap sex toys,dog dildo my latest blog post

Post a Comment