Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. save file in javascript

save file in javascript

Scheduled Pinned Locked Moved ASP.NET
javascripttutorialquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    needhi_p
    wrote on last edited by
    #1

    Hi all.. I want to save file from javascript without promoting to user. How to do this?

    E M N 3 Replies Last reply
    0
    • N needhi_p

      Hi all.. I want to save file from javascript without promoting to user. How to do this?

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      needhi_p wrote:

      without promoting to user.

      what does that mean? Do you mean a file they have uploaded Please be more specific.

      1 Reply Last reply
      0
      • N needhi_p

        Hi all.. I want to save file from javascript without promoting to user. How to do this?

        M Offline
        M Offline
        Manas Bhardwaj
        wrote on last edited by
        #3

        First of all, your question not clear. But whatever be the case, you can not save a file with javascript. :sigh:

        Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        1 Reply Last reply
        0
        • N needhi_p

          Hi all.. I want to save file from javascript without promoting to user. How to do this?

          N Offline
          N Offline
          needhi_p
          wrote on last edited by
          #4

          Hi... Sorry dat my question wasn't clear.... I don't mean to save file dat user has uploaded. I already have a file created, which i want to open in javascript, edit it and den again save it, without the user knowing wats happening. I tried using following , but this opens a save as dialog box. I dont want dat. function SaveFile() { var temp = "hi.. testing"; alert(temp); SaveFrame.document.open("text/html","create") SaveFrame.document.write(temp) SaveFrame.document.close() SaveFrame.focus() SaveFrame.document.execCommand('SaveAs',null,'testing.txt') } Here SaveFrame is an iframe. Hope i am clear now.. How to do this...

          L 1 Reply Last reply
          0
          • N needhi_p

            Hi... Sorry dat my question wasn't clear.... I don't mean to save file dat user has uploaded. I already have a file created, which i want to open in javascript, edit it and den again save it, without the user knowing wats happening. I tried using following , but this opens a save as dialog box. I dont want dat. function SaveFile() { var temp = "hi.. testing"; alert(temp); SaveFrame.document.open("text/html","create") SaveFrame.document.write(temp) SaveFrame.document.close() SaveFrame.focus() SaveFrame.document.execCommand('SaveAs',null,'testing.txt') } Here SaveFrame is an iframe. Hope i am clear now.. How to do this...

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            needhi_p wrote:

            want to open in javascript, edit it and den again save it, without the user knowing wats happening

            what are you trying to hack :wtf:

            The Developer - CEH

            N 1 Reply Last reply
            0
            • L Lost User

              needhi_p wrote:

              want to open in javascript, edit it and den again save it, without the user knowing wats happening

              what are you trying to hack :wtf:

              The Developer - CEH

              N Offline
              N Offline
              needhi_p
              wrote on last edited by
              #6

              :) trying to hack nothing... Actually i m making an audio player. In dat i want dat wen shuffle button is clicked, i want to change the order of songs in my m3u file. So for dat, i need to open it & edit it accordingly & then save it again with same name. Bt i want to do this without postback. So i want to do it using javascript...

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups