|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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
|
|
#3
|
|||
|
|||
|
Hi,
Is there anyotherway to save a webpage content in netscape. |
|
#4
|
|||
|
|||
|
file>save as
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > save a page using javascript in netscape |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|