Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Show PDF

 
Isaac Ferguson
Ranch Hand
Posts: 835
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a javascript file which does this

When I click my button it send me to the original page without download any pdf. I suppose I should put the location of the empty pdf but how?

Would you do it this way? Am I missing something?

Regards
 
Rob Crowther
author
Ranch Hand
Posts: 297
5
Android Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some questions:
  • What is it about the HTML page tm-renewal.htm that will cause it to generate a PDF?
  • What is this 'empty PDF' you mention?
  • Why do you have spaces in your URL?
  •  
    Paul Clapham
    Sheriff
    Pie
    Posts: 20758
    30
    Eclipse IDE Firefox Browser MySQL Database
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    It seems very strange to see Response.ContentType = 'application/pdf'; as a parameter of the URL. Does that actually do something? Do you need to do it when you have an ordinary link to the PDF at that address, or when you type that address into the browser's address bar?
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic