Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Force a pdf Download link

 
Pete Zizuo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Members, I need your help urgently in handling the following two tasks concerning website development.

Task One (Forcing a pdf Download link)

I am looking for a java script code for forcing a pdf download on my webpage where by when a user clicks on the pdf link to have it downloaded, he/she is prompted to enter a "name" and "email address" first and then the download continues. After completing the download, an auto-response thank you message is sent to the email which was fade into the form before the download. Thank you and hope to hear from you so soon.


Task Two (Creating A customization Online Appointment Scheduler)

Members, I am looking for a java script for a customization Appointment Scheduler which can enable my users to create online appointments freely on my website or if anyone knows any free websites which handle online appointments schedules and it can be customized freely then also help me with it. I will be very grateful if my request meets your kind consideration. Hope to hear from you so soon.

Pete
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35757
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pete,
Welcome to CodeRanch!

What is your background? Do you know Java or any other back end language? Both of your tasks require a back end/server component and not just JavaScript.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the future, it is best to ask one question per topic.

I've adjusted the subject to address your first question. Please post another topic to address the second.
 
Pete Zizuo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much, I know Java and its what I mostly use and no any other other back end language! I am sure I can follow if you give me a great picture on how to go about them. Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  • When the link is clicked, open a page (or dialog) with a form for them to give their username and password.
  • When that form submits, validate it against the database (or whatever you are using to store credentials).
  • If the credentials are OK, return the PDF as the response.
  • If not OK, redirect back to the form with a message telling them that the authentication failed.
  •  
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!