SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Learning...
    Join Date
    Jan 2003
    Posts
    781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    forcing Save As dialog from client side

    I am distributing some files on CD. Among other files i have

    download.htm and
    DataFile.txt

    When download.htm file executes, it shoud set the path to the download file as the path for my data file and then opens the save as dialog box when user can then select storage location.

    i can use some thing like

    window.document.execCommand("SaveAs",true,"YourDataFile.txt");
    window.close();

    Here Save as dialog appears but how i can tie the box with the file on the CD?

    Also execCommand is native to IE, How can i use this same in Netscape?

    Thank you guys in advance

  2. #2
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This simply *can't* be done client-side, sorry.

    Perhaps if you explain more clearly what you are trying to do (and why) I can think of an alternative approach.

    For example, if it's to install something, then why not use a real installer instead of a web page? There are plenty of free installation systems, and WinRAR can generate pretty sophisticated self-extracting/installing packages...
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!


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
  •