User Profile

Collapse

Profile Sidebar

Collapse
khans007
khans007
Last Activity: Dec 2 '11, 06:48 AM
Joined: Nov 28 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks for replay even am trying for the same but some article says that in chrome its possible so..
    See more | Go to post

    Leave a comment:


  • writing a text to file in local system using chrome?

    Iam capable of writing a text to file in local system using firefox and how to do it same in chrome?
    Code:
    function writeToFile(filename, data) {
       try {
          netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
       } catch (e) {
          alert("Permission to save file was denied.");
       }
       var file = Components.classes["@mozilla.org/file/local;1"]
    ...
    See more | Go to post
    Last edited by Dormilich; Nov 30 '11, 06:10 AM. Reason: please use [CODE] [/CODE] tags when posting code

    Leave a comment:


  • writing a text to file in local system using chrome?

    Code:
    function writeToFile(filename, data) {
       try {
          netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
       } catch (e) {
          alert("Permission to save file was denied.");
       }
       var file = Components.classes["@mozilla.org/file/local;1"]
          .createInstance(Components.interfaces.nsILocalFile);
       file.initWithPath( filename );
       if ( file.exists()
    ...
    See more | Go to post
    Last edited by acoder; Nov 28 '11, 11:33 AM. Reason: Added [code] tags
No activity results to display
Show More
Working...