ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 10th, 2002, 06:09 AM
nemkal nemkal is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: India
Posts: 22 nemkal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
save a page using javascript in netscape

Hi All.

netscape.security.PrivilegeManager.enablePrivilege ("UniversalFileWrite");
var dest = new java.io.FileOutputStream("C:\\Test.txt");
var dis = new java.io.PrintStream(dest);
dis.println("This is sampleText");
dis.close();
dest.close();
netscape.security.PrivilegeManager.disablePrivileg e("UniversalFileWrite");


I have used above code to save the contents of a webpage.
This works fine if the html file in local machine.
If the same file is requested through IIS i get the following error while using Netscape 4.78 and above.


netscape/security/ForbiddenTargetException ("User didn't grant the UniversalFileWrite privilege.")


Regrads

Reply With Quote
  #2  
Old September 10th, 2002, 07:11 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
that error basically is sayin you need write access??? weird since your only saving the file, but still turn the file to writeable one and try that

Reply With Quote
  #3  
Old September 24th, 2002, 03:41 AM
nemkal nemkal is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: India
Posts: 22 nemkal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,
Is there anyotherway to save a webpage content in netscape.

Reply With Quote
  #4  
Old September 24th, 2002, 03:49 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
file>save as

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > save a page using javascript in netscape


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway