www.webdeveloper.com
Results 1 to 2 of 2

Thread: "Save As" File Dialog to store local path

  1. #1
    Join Date
    Apr 2006
    Posts
    23

    "Save As" File Dialog to store local path

    I am working with a activeX widget that has a method that produces an image which is saved to a users local machine. All the method requires is the path on the local machine. I need to obtain this path (hopefully utilizing a "save as" file dialog) and store its value to a variable so I can pass it to the method. It does work with an input type="file" but they are branded for file uploads an dit is a little misleading and confusing for the user. Any ideas?

    example:

    var path = $("#saveAsDialog").val();
    activeXObj.saveScreenshot(path);

    - dptoot

  2. #2
    Join Date
    Feb 2010
    Location
    Amsterdam
    Posts
    174
    save file as dialogs do not exist within html/javascript if you have access to the activex control code you should be able to extend it with a method which shows a save as dialog and call that function to get your file location.

    so something like

    var path = activeXObj.getpath();

    activeXObj.saveScreenshot(path);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles