This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to Force a pdf Download link

 
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
 
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • 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.
 
Marshal
Posts: 67425
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Marshal
Posts: 67425
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
  •  
    Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
      Bookmark Topic Watch Topic
    • New Topic