How to make or force the Save dialog box for the link pop-up in Dreamweaver

How do or force the Save dialog box for the pop-up link in Dreamweaver, legally?

I looked on google how to and what is the code for this but all the answers are to use php or javascript code and paste it into "Web page editor" and edit with your file name. I wonder what the 'legal' way to do that using Dreamweaver options for getting to this: when I click on my link to the image on my Web page, I created, pop-up "save under" dialog box, then the visitor of my site for can save file that my site wish to offer for download.

It is very easy to just a link certain file (in my case is png image) and open in a new page in the browser, but I want to save as dialog window appears and then visitor on my site to save my png file or not.

Help!

You will need to use a script.  If your server supports PHP, this will do what you want. Change filename & path to point to your download folder.  SaveAs download.php.

Place a link on your page parent download.php file.


Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
http://ALT-Web.com/
http://Twitter.com/ALTWEB

Tags: Dreamweaver

Similar Questions

  • re installed XP. Which if I understand correctly it breaks the path (links) here, where are the pictures. Photos are still there. How to make to restore the links to the photos are located under my pictures. Thank you

    I have not read method 4 5 methods before re install XP on top of the instalation of gooseberry.  Somehow, I had picked up Paladan or palladium that froze my system and wouldn't let me go unless I bought it.  So I used the recovery disc to repair XP.  Once I did I found that all my photos did not appear in my photos.  I installed Picasa and can send pictures very well.  I would like to get XP to recognize the photos so I can use Outlook to send photos.

    I read a few other posts and wonder why in method 4 to install in a separate folder?

    The installation disc said repair and I just let it go in automatic mode. How does the system decide which version to boot from?  When it is in a different folder with a new name?  Is it the latest version installed to boot from or what.

    Thank you

    Hi Muddlinthru,

    · What article are you talking about for relocation?

    · Where are the photos?

    · You receive an option to select the operating system to load into the start menu?

    Important : reinstall the Windows operating system or upgrade your OS on-site is a troubleshooting step extreme that you should only take if you fully understand the ramifications and risks involved. If you decide to take this step, make sure that you have the original Windows XP media and product installation key provided with your operating system. If you are not comfortable trying to reinstall or to repair the Windows operating system, you can contact the manufacturer of your computer for help or bring your computer to a professional repair shop.

    You can check the link below: how to perform an upgrade on the spot (reinstallation) of Windows XP:http://support.microsoft.com/kb/978788

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to remove the Save dialog box before you close the form?

    Hi all

    I've created a form that will open a data connection to a button click.

    I get the error on failure and the code to close my form of app.execMenuItem ("Close");

    but a save dialog box appears before I can close.

    (maybe because I did something on the opening form),

    It is able to remove it? Or simply impossible?

    Best rgds.

    Hmmm,

    What happens if you add?

    Event.Target.Dirty = false;

    app.execMenuItem ("Close");

  • Native of filebrowse using and the cascading Save dialog box

    In my application I need to open file and file save dialog box when a specific button is clicked. I looked at the docs of stunts, but I found that the native options. Tried the native alert dialog, change of filebrowse dialog type. It displays well on Simulator, but could not get any output file that will be used in the Qt code.

    I pass these parameters

    int * num = NULL;

    char * folder [1024];
    dialog_update (alert_dialog);

    to dialog_event_get_filebrowse_filepaths(event,file,num), but it always returns BPS_FAILURE.

    In addition, access_shared is present in the bar-descriptor

    Here is my code:

    //slot function
    void App::fileOpen(){
        //===========================
            dialog_instance_t alert_dialog = 0;
    
            bps_initialize();
    
            dialog_request_events(0);    //0 indicates that all events are requested
    
            if (dialog_create_filebrowse(&alert_dialog) != BPS_SUCCESS) {
                        fprintf(stderr, "Failed to create alert dialog.");
                        return ;
                }
                const char* extensions[] = {"*.*","*.jpg","*.jpeg","*.mp3","*.wav","*.mp4","*.txt","*.doc","*.pdf"};
                int items = 9;
                if(dialog_set_filebrowse_filter(alert_dialog, extensions,items) != BPS_SUCCESS){
                    fprintf(stderr, "Failed to set alert dialog message text.");
                            dialog_destroy(alert_dialog);
                           alert_dialog = 0;
                           return ;
                }
               if( dialog_set_filebrowse_multiselect(alert_dialog,FALSE)!=BPS_SUCCESS){
                   fprintf(stderr, "Failed to set alert dialog message text.");
                                dialog_destroy(alert_dialog);
                               alert_dialog = 0;
                               return ;
               }
    
            if (dialog_show(alert_dialog) != BPS_SUCCESS) {
                fprintf(stderr, "Failed to show alert dialog.");
                dialog_destroy(alert_dialog);
                alert_dialog = 0;
                return ;
            }
    
            int shutdown =0;
            while (!shutdown) {
                bps_event_t *event = NULL;
                bps_get_event(&event, -1);    // -1 means that the function waits
                                              // for an event before returning
    
                if (event) {
                    if (bps_event_get_domain(event) == dialog_get_domain()) {
    
                        int selectedIndex =
                            dialog_event_get_selected_index(event);
                        const char* label =
                            dialog_event_get_selected_label(event);
                        const char* context =
                            dialog_event_get_selected_context(event);
    
                        char **fileArray[]={};
                        int *numFiles = NULL;
                       //
                              if(selectedIndex == 0){
           shutdown = 1;//user press the cancel button on dialog; close the dialog
       }
       else if(selectedIndex == 1){
           if(dialog_event_get_filebrowse_filepaths(event,file,num)!=BPS_SUCCESS){
           fprintf(stderr,"File open fail");
       }
       else{
    
    //debug purposes
           fprintf(stderr,"File array: %d/n",sizeof(file)*1024);
               fprintf(stderr,"Num files: %n",num);
               //fprintf(stderr,"Files int: %d",files);
       }
    
       }
                    }
                }
            }
    
            if (alert_dialog) {
                dialog_destroy(alert_dialog);
            }
            //===========================
    }
    

    Native Subforums have no useful information on this subject. Any help is greatly appreciated

    Hello again, here's the example as promised.

    To use the native filebrowse dialog box, the native code must run in its own thread to prevent the user interface in the Cascades to block. This is achieved by encapsulating all the dialog box code in a class derived from QThread.  The class I wrote is called FileBrowseDialog

    FileBrowseDialog.hpp

    #ifndef FILEBROWSEDIALOG_HPP_
    #define FILEBROWSEDIALOG_HPP_
    
    #include 
    #include 
    #include 
    
    /*
     * The file browse dialog displays a dialog to browse and select
     * files from shared folders on the system.
     */
    class FileBrowseDialog : public QThread
    {
        Q_OBJECT
    
        /*
         * QML property to allow multiple selection
         */
        Q_PROPERTY(bool multiselect READ getMultiSelect WRITE setMultiSelect)
    
        /*
         * QML property to read the selected filenames
         */
        Q_PROPERTY(QVariant filepaths READ getFilePaths)
    
        /*
         * QML property to set or get the file filters. This is an
         * list array variant.
         */
        Q_PROPERTY(QVariant filters READ getFilters WRITE setFilters)
    public:
        /*
         * Ctor and Dtor
         */
        FileBrowseDialog(QObject* parent = 0);
        virtual ~FileBrowseDialog();
    
        /*
         * Exposed to QML to start the run loop which creates and displays the dialog.
         * The dialog is shown until a button is clicked.
         */
        Q_INVOKABLE void show();
    
    public:
        /*
         * Getter for the selected filenames QML property
         */
        QVariant getFilePaths() const;
    
        /*
         * Setter and Getter for the filters QML property
         */
        QVariant getFilters() const;
        void setFilters(QVariant const& value);
    
        /*
         * Getter and Setter for the multiselect QML property
         */
        bool getMultiSelect() const;
        void setMultiSelect(bool value);
    
    signals:
        /*
         * Signal emitted when the OK button has been clicked on the browse dialog
         * The OK button is not enabled unless a file is selected
         */
        void selectionCompleted();
    
        /*
         * Signal emitted when the cancel button has been clicked on the browse dialog
         */
        void selectionCancelled();
    
    protected:
        /*
         * Implements the run loop. Dialog stays open until a button is clicked.
         */
        virtual void run();
    
    protected:
        dialog_instance_t m_dialog;
        bool m_multiSelect;
        QVariantList m_filePaths;
        QVariantList m_filters;
    };
    
    #endif /* FILEBROWSEDIALOG_HPP_ */
    

    FileBrowseDialog.cpp

    #include "FileBrowseDialog.hpp"
    #include 
    #include 
    
    FileBrowseDialog::FileBrowseDialog(QObject* parent)
        : QThread(parent)
        , m_multiSelect(false)
    {
        m_filters.push_back(QString("*.*"));
    }
    
    FileBrowseDialog::~FileBrowseDialog()
    {
    }
    
    void FileBrowseDialog::show()
    {
        if (!isRunning())
        {
            m_filePaths.clear();
            start();
        }
    }
    
    QVariant FileBrowseDialog::getFilePaths() const
    {
        return m_filePaths;
    }
    
    bool FileBrowseDialog::getMultiSelect() const
    {
        return m_multiSelect;
    }
    
    void FileBrowseDialog::setMultiSelect(bool value)
    {
        m_multiSelect = value;
    }
    
    QVariant FileBrowseDialog::getFilters() const
    {
        return m_filters;
    }
    
    void FileBrowseDialog::setFilters(QVariant const& value)
    {
        m_filters = value.toList();
        qDebug() << "filter count: " << m_filters.count();
    }
    
    void FileBrowseDialog::run()
    {
        bps_initialize();
    
        //request all dialog events
        dialog_request_events(0);
        if (dialog_create_filebrowse(&m_dialog) != BPS_SUCCESS)
        {
            qDebug() << "Failed to create file browse dialog.";
            emit selectionCancelled();
            return;
        }
    
        //set the selection filters
        if (m_filters.count() > 0)
        {
            char** ext = (char**)new char[m_filters.count()*sizeof(char*)];
            int i = 0;
            for (QVariantList::iterator it = m_filters.begin(); it != m_filters.end(); ++it, ++i)
            {
                QString filter = it->toString();
                if (!filter.trimmed().isEmpty())
                {
                    int length = (filter.length() + 1) * sizeof(char);
                    ext[i] = new char[length];
                    strncpy(ext[i], filter.toAscii(), length);
                }
            }
            if (dialog_set_filebrowse_filter(m_dialog, (const char**)ext, m_filters.count()) != BPS_SUCCESS)
            {
                qDebug() << "unable to set file browse dialog extensions";
            }
            for (i = 0; i < m_filters.count(); i++)
            {
                delete ext[i];
            }
            delete ext;
        }
    
        if (dialog_show(m_dialog) != BPS_SUCCESS)
        {
            qDebug() << "Failed to show file browse dialog.";
            dialog_destroy(m_dialog);
            m_dialog = 0;
            emit selectionCancelled();
            return;
        }
    
        bool shutdown = false;
        while (!shutdown)
        {
            bps_event_t* event = NULL;
            bps_get_event(&event, -1);    // -1 means that the function waits
            // for an event before returning
    
            if (event)
            {
                if (bps_event_get_domain(event) == dialog_get_domain())
                {
                    //0=ok, 1=cancel
                    int selectedIndex = dialog_event_get_selected_index(event);
    
                    if (selectedIndex == 1)
                    {
                        int count;
                        char** filepaths;
                        if (BPS_SUCCESS == dialog_event_get_filebrowse_filepaths(event, &filepaths, &count))
                        {
                            for (int i = 0; i < count; i++)
                            {
                                qDebug() << "selected file: " << filepaths[i];
                                m_filePaths.push_back(QString(filepaths[i]));
                            }
                            bps_free(filepaths);
                        }
                        emit selectionCompleted();
                    }
                    else
                    {
                        emit selectionCancelled();
                    }
    
                    qDebug() << "Got file browse dialog click";
                    shutdown = true;
                }
            }
        }
    
        if (m_dialog)
        {
            dialog_destroy(m_dialog);
        }
    }
    

    This class derives from QObject (by QThread) which means that it can be used by QML when it exposes properties and signals. The FileBrowseDialog class has 3 properties

    -multiple selection: a Boolean flag indicating if single or multiple selection is allowed

    -filepaths: a read only value that returns the list of files selected

    -Filters: a read/write value is where you can specify one or more filters to file (for example, ".doc", "*.jpg") etc.

    The next part is how you call the FileBrowseDialog through the QML. To do this, we must inform the QML of the FileBrowseDialog page. This is done in the App class via the qmlregistertype code.

    App.cpp

    #include 
    #include 
    #include 
    
    #include "app.hpp"
    #include "FileBrowseDialog.hpp"
    
    using namespace bb::cascades;
    
    App::App()
    {
        qmlRegisterType("Dialog.FileBrowse", 1, 0, "FileBrowseDialog");
        QmlDocument *qml = QmlDocument::create("main.qml");
        qml->setContextProperty("cs", this);
    
        AbstractPane *root = qml->createRootNode();
        Application::setScene(root);
    }
    

    The QML is now ready to be able to use the FileBrowseDialog. The example below is a page complete qml which has a button and a label. When we click on the FileBrowseDialog button is open, and all selected files will appear in the label.

    Main.QML

    import bb.cascades 1.0
    import Dialog.FileBrowse 1.0
    
    Page {
        content: Container {
            Label { id: filebrowseDialogLabel }
            Button {
                text : "File Browse Dialog"
                onClicked: {
                    filebrowseDialog.show();
                }
            }
            attachedObjects: [
                FileBrowseDialog {
                    id: filebrowseDialog
                    multiselect : true
                    filters : ["*.doc","*.jpg","*.txt"]
                    onSelectionCompleted: {
                        if(filebrowseDialog.filepaths.length>0)
                            filebrowseDialogLabel.text = filebrowseDialog.filepaths[0];
                        else
                            filebrowseDialogLabel.text = "no file selected";
                    }
                    onSelectionCancelled: {
                        filebrowseDialogLabel.text = "file browse dialog was cancelled";
                    }
                }
            ]
        }
    }
    

    And it's pretty much just invoke the native dialog file navigation in stunts. Please note save the file would follow a similar model, but I found that this dialog box was not particularly useful because it displays only a simple dialogbox with a text file name entry.

    See you soon

    Swann

  • How to make a dialog box for a user to choose a file to disk

    Hello

    Is it possible to make a dialog box for a user of photoshop, choose a txt, process of my javascript file?

    I have a txt file with all the names and locations of the psd files, I want to treat by photoshop. I have e.g. 100 out of a folder with 250 images.

    If anyone has a shot "sample code" how to select a file - I will be happy.

    / T

    Here is an example of selection of a text file...

    var dlg=
    "dialog{text:'Script Interface',bounds:[100,100,500,220],"+
    "testFile:EditText{bounds:[10,40,310,60] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
    "Browse:Button{bounds:[320,40,390,61] , text:'<<' },"+
    "statictext0:StaticText{bounds:[10,10,240,27] , text:'Please select Text File' ,properties:{scrolling:undefined,multiline:undefined}},"+
    "Process:Button{bounds:[10,80,190,101] , text:'Process' },"+
    "button2:Button{bounds:[210,80,390,101] , text:'Cancel' }};"
    var win = new Window(dlg,'test');
    win.center();
    win.testFile.enabled=false;
    win.Browse.onClick = function() {
     selectedFile = File.openDialog("Please select TEXT file.","TEXT File:*.txt");
      if(selectedFile != null) win.testFile.text =  decodeURI(selectedFile.fsName);
    }
    win.Process.onClick = function() {
     if(win.testFile.text == '') {
      alert("No text file has been selected!");
      return;
      }
     win.close(1);
     selectedFile.execute();
    }
    win.show();
    
  • How to make connections on the outputs of the letter of wsn 3202?

    GOOG morning engineers,

    How to make connections on the outputs of the letter of wsn 3202?

    Sorry, I'm very confused by your response.

    You must not something on the power set by program, just connect a power supply to DIO power and mass of DIO.  Then your DIO lines should be able to output values.

    In addition, I think that you may need to configure the output line.  This would be by the project.  I don't remember what it is, but it should be in some menu properties (probably for the specific line of DIO).

  • I downloaded OS Yosemite and threw it on my photoshop 3 - How to make it to the top?

    I downloaded OS Yosemite and threw it on my photoshop 3 - How to make it to the top?

    Assuming you mean ps cs3,

    Downloadalbe installation files available:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

    window using the Lightroom 3 link to see these "important Instructions".

  • In a pinned tab - how to force the link click here to open in a new tab?

    I'm trying to get all THE links you click to open in a new TAB. It worked before the upgrade to v37.0.02 wonder, but I started to notice some links are now updated the TAB PINS, rather than open the link in a new tab. Only some.

    All of these sites that I have used before the upgrade to v37.0.2.
    So I'm confused as to why. What has changed?

    I followed the advice of Co - rel here:
    https://support.Mozilla.org/PL/questions/970999

    [quote]

    You can set the browser.link.open_newwindow to 1 on the about:config page
     http://kb.mozillazine.org/about:config
    

    See:

     http://kb.mozillazine.org/browser.link.open_newwindow (default: 3)
     1: current tab; 2:new window; 3:new tab;
    

    This pref defined the behavior of JavaScript links:

     http://kb.mozillazine.org/browser.link.open_newwindow.restriction (default: 2)
     0:all; 1:none; 2:only special windows
    

    /quote

    Can you please tell me how will I know if the link is a "JavaScript links?

    Thank you

    You can middle - click a bookmark to open this bookmark in a new tab.
    Otherwise, you will need to use an extension to open a default bookmark in a new tab.

  • Dialog boxes for the interface user uses the wrong font

    Don't know how to explain it.  Windows 7 x 64 bit with adobe reader 10.1.10.  It seems that the dialog box for example use a courier font.  Don't know what it is supposed to be using.  Forums suggest Segoe.  I went into regedit and here's what I see here, but when I go in c:\windows\fonts, I see only 5 fonts listed.  Microsoft has an update of symbol Segoe font but do not know if this is what I have to replace all of these missing fonts or if that's still the problem.  This isn't only the dialog box, this whole adobe reader has this particular font.  S Windows 7 fonts, however, are not at all this font and displays correctly anywhere else.  Any suggestions?

    Adobe Dialog Box.png

    Segoe.png

    Hi mo4ya2000,

    Try the latest Adobe Acrobat Reader DC Adobe - Adobe Acrobat Reader DC Distribution.

    Kind regards
    Nicos

  • OfficeJet 3830: dialog box for the scanner

    Just replaced an Officejet 6500 with an Officejet 3830.  The 6500 had a dialog box analysis from the top of the office, which showed levels of ink and scanner options.  The new 3830 seems not to have this.  Is there a way to get this dialog box for the the 3830?

    Hello

    Please install the software and driver from the CD that came with your printer to your computer.

    Kind regards.

  • Hello. I have problems overview of my captivate projects. He is now asking how I want to open the link. Previously is very nice. Help, please

    Hello. I have problems overview of my captivate projects. He is now asking how I want to open the link. Previously is very nice. Please help @

    Are you on Windows? This isn't an error, warning, just an offer to change the browser.  I don't see and have several browsers as well. Could check you what browser is linked to the files with the html? It can be another parameter in Win as well, I'm still on Win7 myself. This seems to be another version, you've improved recently?

  • I accidentally deleted some photos from my phone to the computer, how to make their return without having to pay for software to recover and save?

    plugged in lg cookie and entered the hard drive on my computer, went to images clicked on an image then shift held clicked on another, supposed to press copy, but accidentally remove in a hurry. Ive tried other programs, but ultimately, I have to sign up, we need to find a way or a program on how I can get them back for free. Thank you

    Recuva, a well known freeware recovery program.

    Take a look, I am attaching the link.

    http://www.Piriform.com/Recuva

    HTH

  • How do you force a macro dialog box to open all the other open windows on top?

    I have a macro that was created in the SolidWorks program. The macro works as expected, except during the macro, there is a dialog box that is supposed to appear on the top of the page to wait for user input. This opened on top in Windows XP but not in Windows 7. In Windows 7, I have to place the window in the front. It is not a show-stopper, but more pain. Is there a way to fix this?

    Thanks in advance.

    Hello

    The question you posted would be best suited to:

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • How can I disable "force the touchpad touch '?

    Theoretically, this terrible 'feature' is only available on the latest models of MBP... I opted for the mid-2012 13 "this time (I got a few Mbps) since this is the last model that still has the DVD player.

    SO there is no option 'force the click and haptic feedback' in my system preferences, BUT my GarageBand preferences for some reason any displays the option 'Enable touchpad touch force' with the GRAY-CHECKED box (which means that I can not turn the * @% & thing off)!

    I discovered its existence, while trying to understand why my GB kept popping up with a "feedback detection, turn monitor off? ' blurb that is so incredibly boring, because it appears when I even not record anything and even stranger than that is it pops up when I don't have even a 'live' or vocal instrument track in the air! So, when looking for how/where to address THIS issue, I came across the "Force Touch" thing (christ, the only words sounds like an assault or rape or something, I mean, right?); now I'm pretty sure that this thing is causing "feedback" notice pop up (, also keeps you prisoner until you do deal with it - yet another great added "characteristic", thank you very much oh no Apple brilliant makes this happen)... arrghhh!

    SOMEONE CAN ME SAY PLEASE HOW TO TURN OFF THAT AWFUL THING? I don't even know WHY it does not appear (I usually want to answered the 'why'), but I despise seriously this thing so I JUST WANT IT GONE! Please that there is someone out there reading this who knows how to achieve it - I'll be eternally grateful!  Thank you!!!

    Hello

    See if there is something you have not tried in this support article > using a Force - touch trackpad Apple supported

  • Have file save dialog box to configure the type of csv file

    I'm saving a file of the program to the csv format recipe.

    I can save and retrieve the file without problem.

    I want to do is have the save file dialog box present a *.csv instead of the default file type all files *. * and then depend on the user to enter file.csv

    Does anyone know a way to make this programitically?

    Hi Clark,.

    the FileDialog has some entries 'label model ". Have you used the or read the context-sensitive help for this function?

Maybe you are looking for