Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 30th, 2003, 09:44 AM
Registered User
 
Join Date: Jun 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to shine
Default saving files using jscript

When we're saving a file to a local drive using javascript, a 'permission denied' error message is comming. We're using Activex object to do this and our OS is win98. Please tell me a solution for this. Any suggestion would be greatly appreciated. Thanx in advance.

august
 
Old December 30th, 2003, 03:54 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

august,

If you mean save a file to the client's computer, try this:
Code:
// open the file....

var file = window.open("the_file.extension","file");

file.document.execCommand("saveas","","the_path_you_want_to_save_to");

file.window.close();
Otherwise, sorry, I don't know.

Snib

 
Old January 2nd, 2004, 11:56 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Ask the client to lower the permissions for the relevant zone.

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
saving files in windows format rage989 PHP How-To 0 August 30th, 2007 03:07 PM
Read content of PPT files and saving to database Padmaja11 Other Programming Languages 0 July 19th, 2007 03:27 AM
Saving in multiple files at the same time rgasparoni XSLT 3 April 24th, 2006 07:21 AM
tracking hits and saving in new text files daily bsc12 Classic ASP Professional 4 September 8th, 2004 08:58 PM
Saving Files on the Client System BSkelding ASP.NET 1.0 and 1.1 Basics 5 March 25th, 2004 01:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.