This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to save a page ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to save a page ?" Watch "How to save a page ?" New topic
Author

How to save a page ?

Mishra Anshu
Ranch Hand

Joined: Sep 16, 2003
Posts: 224
I have got some log info's coming from the server.
Ideally it is needed that, if a person wants to save it
by clicking on the button ("Save"),..he should get the option to save
it on the appropriate place of his computer.
Is it possible?
As it is a very basic need...I hope there might be some way :roll:
Probably Again Eric would have some advice on how to do? Although I request you all to show me some way.


"Ignorance is bliss"
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Thee is no real crossbrowser friendly way to do it..
The best thing I would say is to use a server side language to convert the log info into a downloadable format like excel or word.
BUT if you are planning only doing it IE then check out this:
http://p2p.wrox.com/topic.asp?TOPIC_ID=3407
Eric
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 411
Hi,
Here is some more info about FileSystemObject:
MSDN - FileSystemObject
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 411
Also, you can checkout:
http://www.faqts.com/knowledge_base/view.phtml/aid/5785/fid/53
http://www.faqts.com/knowledge_base/view.phtml/aid/7049/fid/53
Mishra Anshu
Ranch Hand

Joined: Sep 16, 2003
Posts: 224
thanks eric and yuriey..
But,I should prefer for the server side scripting....
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
The server side scripting would make browser friendly, the solutions that we showed you are only going to work in IE since it uses an active X control.
Eric
 
jQuery in Action, 2nd edition
 
subject: How to save a page ?
 
Threads others viewed
how do I upload files?
Storing enums in database
Saving image to BD
display a "save as" dialog
how can i save contents of a JEditorPane?
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture