Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Saving Word or PDF document

 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I need to provide two links on my HTML page,such that it allows my resume to be saved in Word or PDF document as per the link clicked.I want that when someone clicks the link,the open/save pop-up box should come-up,like we do in JSP changing the mime-types.Please help me if you can.
Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not do that since the browser will perform the default action that the browser is set to do. If it knows the file type it knows to load it in the browser, if it does not know it, it asks you to save it.

Most people know to right click to save, I would not worry about it.

Eric
 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric,
Ok..so can i just give the option to save the document in Word or PDF format.If yes,can you tell me or refer me some link that shows you how to accomplish this.
Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing in HTML or JavaScript to force a save as window....
 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric,
Ok..actually i was seein this site(http://www.codebump.com/cb/resume.htm), on which the creator gives you the option of saving the resume in word/pdf format.And,I was tryin to implement somewat similar functionality in my site.Ok,so as you say.the user needs to save the document by right-clicking,so what i need to do for that??
Cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic