SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Wizard big_al's Avatar
    Join Date
    May 2000
    Location
    Victoria, Australia
    Posts
    1,661
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just wanted to know if anyone knew how to, or knew a tutorial on writting dynamic HTML to a file client side.

    eg have a script to write html to a new file and save it as abc.htm on a clients computer??
    .NET Code Monkey

  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi big_al,

    Neither html nor javascript has the ability to write to a file, let alone write to the client's machine. The only exception is writing a cookie, and storing an entire html page as a cookie may be possible, but highly inefficient. The only possibility I can think of is write your html page, display it, and pop a window that prompts the user to use his browser's File-Save manually.

    Sorry
    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still

  3. #3
    SitePoint Addict
    Join Date
    Oct 2000
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vinny's on the beam, per usual, big_al. Loosely put, one might say: "Ack! Ack! Ack! Security Error!"

  4. #4
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where as you can not save or edit files on the clients machine doesn't mean you have to give up your quest of wanting to do this. If you have the ability of serverside scripting, you can have the file created there and when the client wants to get the file you can display a page that has there recently created page/file in a link so they can download it where they please


  5. #5
    SitePoint Addict
    Join Date
    Oct 2000
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dndpavlik, I've used that approach -- with a little finesse, it works nicely.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •