How would I create a link to download an image to the harddrive from within edge?

I'm using this code in an on-click event currently, but it just opens the image in a new page, it doesn't download the file to the user's computer.
window.open("URL HERE", "download", "_blank");
I also tried using this code on a text-box, but it didn't do anything. i'm sure it's missing some on-click thing, but i'm not sure how to phrase that.
sym.$("Text4").html("<a href='URL HERE' download>");
thanks!

Here is the sample.
download image.zip - Box

Similar Messages

  • Help Creating A Link In An IR Report Passing The Value From A Different Col

    Version 4.0.2.00.07
    Hello,
    I have an Interactive Report with a column that I need to create a link on but I need to pass the value of another column.
    This report shows the Features of a particular Release. There is a select list for the Release that is selected and executes the report.
    There is a column that indicates whether the Feature has a Commitment attached to it. If there is have that a link to another report that shows all the Commitments for that Feature by passing the FEATURE_ID which is also a column on the Feature report.
    Query:
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
                                      ) THEN 'Yes' ELSE 'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....If "Commitment Exists" has a 'Yes', the 'Yes' is a link that will pass the FEATURE_ID to another report that will show the Commitments for that Feature. If the "Commitment Exists" has a 'No' then no link.
    I was also wondering if the Commitment report could open in a seperate window and make it modal?
    I hope this is clear and someone could help me.
    Please let me know if it's not clear or more information is needed.
    Thanks,
    Joe

    To accomplish this I would build the link as part of the value. So if Yes the Yes itself would be a link, if No is simply text as today.
    It would look something like this:
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
           THEN
            '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
           ELSE
            'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....One problem with this approach is when you export the report (as a CSV for example). There are a few ways to handle this, one is to simply duplicate the column with clear text yes and no and set this column to be included on export and only visible on export. The other column, with the link, set it to no export.
    The other option is to add another condition on the REQUEST value.
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
           THEN
                  decode(:REQUEST, 'CSV', 'Yes'
                , '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
           ELSE
            'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....It seems that the link itself is getting replaced with a #. The link would look something like this:
    'f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id
    Hope this helps.
    Oh and of course, in order for the link to display you need to change the Display Type to "Standard Report Column" otherwise the HTML will be escaped.
    Thanks
    -Jorge

  • How can I create a link to download a file in Captivate?

    So, in my Captivate file, I want people to be able to download an XML file to their machine.  If I create a hyperlink to "open a file", then when a user clicks on it, captivate attempts to open the xml file in a browser window instead of downloading it.  I can't figure out how to use the download attribute for an href in captivate and I'm not sure if javascript to do this would execute properfly.  Anybody know the best way to accomplish a force download of a file from a captivate presentation (Captivate 6)?
    TIA.

    If you want to really do this so that it is consistent for all browsers, you'll need to implement this at the server level.  I did this with the Dynamic PDF Export Widget.  Typically, a PDF will be displayed in the browser, but I added the ability to download it instead.  It does require a PHP file (or some other server side script).  In the PHP file, you'll want to set the response header for Content-Disposition to "attachment"... that's the key.
    The elbow grease part has to do with managing how the browser handles the link.  You'll want the Captivate hyperlink to open a new window so that the student does not navigate away from your course in the current window.  But since you are opening a PHP file, you can inject javascript into the document of the new window/tab to close itself.  The download will still continue eventhough the window/tab was programmatically closed.  However, most modern browsers will automatically close the window/tab for you when downloading a file.  If you want to see an example of a PHP file that implements this, go ahead and download the trial version of the Dynamic PDF Export widget.  You'll see the create.php file in the zip package.
    http://captivatedev.com/2012/07/25/adobe-captivate-6-x-widget-dynamic-pdf-export/
    If you want to go simple as TLC Media Design suggested, just zip it and let your students unzip the xml file, or just rename the xml file with a .zip extension and tell them to rename the file back to .xml after downloading.

  • How do you create a link to download a PDF file?

    I'd like to create links so that when clicked, a PDF file associated with the link will automatically be downloaded. I've created a folder where I've stored all of the PDF files, but where on my web host do I put the folder--is it part of the published iWeb folder or should it be kept separate? (I'm using a 3rd party web host, Lunarpages.com)
    Second, to create the links, I've written "Download Page" on for each link, highlighted the words, then enabled it as a hyperlink with the inspector. However, this changes "Download Page" to the name of the PDF file. How can I keep the words "Download Page" without changing it to the name of the file? Also, is this the correct way to have a PDF file automatically downloaded when "Download Page" is clicked?
      Mac OS X (10.4.7)  

    Hi there,
    While I do not use iWeb, I do use PDF files on my website.
    I first create a new folder to hold my PDF files and upload this to my website. When I create and upload PDF files I will upload to this folder. When someone wants to view this files, all they need to do is click on the link I created. After clicking on link, if the user is on a PC, Acrobat Reader is automatically used to view the file or if they are on a Mac, Preview is usually the default viewer (if the they are using Safari, it will simply open in Safari). Just having the extension on yourfile.pdf will cause this and you will not need to do anything else on your end.
    FOR EXAMPLE: Download Sample PDF - try it on different browsers and PC's
    As far as 'download page', it automatically starts as soon as you click on link. If you are talking about 'saving' the user will always have that option on their end...
    Rick
    iMac G5 iSight 20" - 30G iPOD in Slimming Black -   Mac OS X (10.4.7)   - HP Pav 15" WS and Toshiba Sat 17" WS LP's - Canon 20D & A620

  • How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can"t find in any of the tutorials.

    How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can't find in any of the tutorials.

    The steps would be :
    - Add files from file menu > select pdf > add to site
    - Select the content (rectangle,text etc) and click on hyperlink dropdown > it should show you the added files list
    - Select the file you want to link
    Thanks,
    Sanjit

  • How do i create a link to an Anchor in Adobe Muse so that i can add the link in an email?

    How do i create a link to an Anchor in Adobe Muse so that i can add the link in an email?

    Create your anchor normally then in your email for example if your anchor is on your index page your link would look like http://www.yoursite.com/index.html#youranchor

  • How would I create buttons states for MCs I am creating abstract MCs

    I am creating a generic website that would have abstract MCs that would load jpg or TXT fields for the user interface to allow for fast updates to the site. The MCs that would make up the user interface would be empty and load things into it using XML or PHP later on. How would I create button states for the user interface MCs.  I started creating a function for every MC button state but I thought there might be a more efficient way.
    would creating a array help in this case?
    and is using URLRequest the way to link to pages with in a movie well the flash movie that is the site it's self?
    /*---------------------------- THE START OF MY ACTION SCRIPT ------------------------------*/
    var waywardLogo_mc:MovieClip = new MovieClip;
    var theCollection_mc:MovieClip = new MovieClip;
    var newsPage_mc:MovieClip = new MovieClip;
    var whatthe#$@!doyouwant!?_mc:MovieClip = new MovieClip;
    /*---------------------------- onOver ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    theCollection_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    newspage_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    /*---------------------------- onOut ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    theCollection_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    newspage_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    /*---------------------------- onClick ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.CLICK,onClick);
    theCollection_mc.addEventListener(MouseEvent.CLICK,onClick);
    newspage_mc.addEventListener(MouseEvent.CLICK,onClick);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.CLICK,onClick);
    function onOver(event:MouseEvent):void
    event.target.alpha = .5;
    function onOut(event:MouseEvent):void
    event.target.alpha = 1;
    function onClick(event:MouseEvent):void
    event.target.URLRequest("");
    /*---------------------------- onover, onOut, onClick buttonModes ------------------------------*/
    waywardLogo_mc.buttonMode = true;
    theCollection_mc.buttonMode = true;
    newspage_mc.buttonMode = true;
    whatthe#$@!doyouwant!?_mc.buttonMode = true;

    click insert/new symbol, tick movieclip, assign a name, tick export for actionscript and in the class textfield enter a name (say ButtonClass) and click ok.
    attached to the first frame of your new movieclip, type stop() in the actions panel.  put whatever graphic you want on-stage for your button's up stage.  create another keyframe, label it "over" and put whatever graphic you want for button's over state on-stage.
    in a layer above those graphics, you'll probably want to add a dynamic textfield so each of your buttons can have different text.  assign the textfield and instance name (say tf) and extend its timeline to the last frame of your movieclip button.
    then when you want to create a button, on your timeline you can use:
    var b:ButtonClass=new ButtonClass();  // these two lines need to be entered for each button
    buttonhandlerF(b,someX,someY);
    //-------code between dotted lines only needs to be entered once no matter how many buttons you add --------------------
    function buttonhandlerF(b:ButtonClass,x:Number,y:Number){
    b.addEventListener(MouseEvent.MOUSE_OVER,overF);
    b.addEventListener(MouseEVent.MOUSE_OUT,outF);
    b.x=x
    b.y=y
    addChild(b);
    function overF(e:MouseEvent){
    e.currentTarget.gotoAndStop("over");
    function outF(e:MouseEvent){
    e.currentTarget.gotoAndStop(1);
    //-------code between dotted lines only needs to be entered once --------------------
    // you'll also want to create a click listener and listener function
    the code between the dotted lines is amenable to being added to a ButtonClass.as class file if want to expand your capabilities.

  • How can I create a one-click download for a PDF file?

    I want to have several PDF files on the website ... for downloading. How do I create a one-click download button? for those who don't know about control-right-clicking to download something?
    Does such a possibility exist?
    Ben

    Hi Quicktime Kirk,
    Thank you. And that leads me to another question: I've used the zip function before, with the idea of making a smaller file for transfers; but the PDF I get from Pages doesn't seem to compress any more when supposedly further compressed by .zip. Meaning, same size files.
    Is this supposed to be like this? And, just so I understand, the file needs to be a .zip file for this one-click function to work? Have I got that right? Or will it work just as well with the .pdf file? Given there is no difference in the compression.
    Ben

  • How can I create a link from a CHM file to a webhelp file?

    How can I create a link from a CHM file to a webhelp file?
    The CHM output (accreditation.chm) is stored in a parent directory, and the webhelp output (index.htm) is stored in a child directory.

    Open the usual Link dialog and enter the relative path from where the CHM will be installed to where the webhelp will be installed.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I create a link on an image?

    How can I create a link on an image?

    Select your image and in the hyperlinks tool on the toolbar simply type in your site address you want to link to. be sure to include the http:// before the domain name.

  • How can i get a link to download windows storage server 2008 standard

    how can i get a link to download windows storage server 2008 standard

    Hi,
    Please find the below link for storage server and its resources.
    Windows storage server
    Regards, Ravikumar P

  • How Do I Create A Link To  A Different Page?

    I'm using the v10.1.2 Portal.
    I created 6 Oracle Portlets implemented using JSP. I then created 2 pages within the same page group.
    On page 1 I put Portlet_1a, Portlet_1b and Portlet_1c. On page 2 I put Portlet_2a, Portlet_2b and Portlet_2c.
    In Portlet_1a I want to create a link that, when clicked, will bring the user to Page 2.
    Can someone explain how I can go about doing this? What classes/api should I use? How do I specify a different page within the Page Group?
    Thanks,

    Hi,
    Its can be done, Im also using this.
    There are 2 ways how I do it
    1) I have a .properties file on the app server where I've put an attribute eg page2URL= http:\\......
    In Portlet_1a I read this attribute and use it for navigation. Every portlet instance will read the same attribute value.
    2) You can have a Personalization Object and put the page2URL attribute in the portlet defaults. This will store a seperate attribute value for each portlet instance
    PL/SQL portlets do it differently again, each page has a (unique) name, you can look up the name inside the portal database and build the url from there. I never done this trick though.
    There is a big difference in how the links work on the new portal version and the older one. Friendly links vs identified links.
    Classes you can use to help build an url
        try {
          //url = UrlUtils.constructHTMLLink(pr, UrlUtils.PAGE_LINK, "dummy", "", new NameValue[] {}, false, false);
          //url = UrlUtils.constructLink(pr, UrlUtils.PAGE_LINK, new NameValue[] {new NameValue("eventid", ""+1)}, false, false);
          url = pr.getRenderContext().getPageURL();
          pageLink = url.replaceFirst("<[aA] href=['\"]?(.*?[^'\"])['\"]?>(.*?)</[aA]>", "$1");
          pageLinkEnc = URLEncoder.encode(pageLink, "UTF-8");
        } catch(Exception e) { e.printStackTrace(); }Orcale API already creates a <A....link for me, I didnt want that, so I filtered the actual link from it
    Hope this helps a bit

  • How can i Create Database Link

    Dear Expert,
    I have two servers on that there are two databases then
    how can i create database link.

    CREATE [SHARED][PUBLIC] DATABASE LINK link_name
    [CONNECT TO user IDENTIFIED BY password]
    [AUTHENTICATED BY user IDENTIFIED BY password]
    [USING 'connect_string']

  • How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?

    How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?
    Let's say the SQL Server and Oracle Database are in the same Company Internet Network.
    I have the code, but I do not know how to use it. Such as what is System DSN Name? Where could I get it. What does it look like?
    Do I need to install any Oracle Client Software in order to link from SQL Server to Oracle? Or SQL Server has the built-in drivers installed already that I can directly create a Linked Server from SQL Server to Oracle?
    I need to know details. Thanks.
    USE master
    go
    EXEC sp_addlinkedserver
         @server  = '{Linked Server Name}'
        ,@srvproduct = '{System DSN Name}'
        ,@provider  = 'MSDASQL'
        ,@datasrc  = '{System DSN Name}'
    EXEC sp_addlinkedsrvlogin
         @rmtsrvname = '{Linked Server Name}'
        ,@useself  = 'False'
        ,@locallogin = NULL
        ,@rmtuser  = '{Oracle User Name}'
        ,@rmtpassword = '{Oracle User Password}'

    You need an OLE DB provider for Oracle. There is one that ships with Windows, but it only supports very old versions of Oracle. Oracle has an OLE DB provider that you can use. I don't know if it's part of Oracle Client or how it is bundled.
    You should not use MSDASQL or any DSN.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How do I create a link from my site to my facebook page?

    How do I creat a link on my site to go to my facebook page?

    This MacWorld page may be of interest to you....
    http://www.macworld.com/article/143631/2009/11/fbiweb.html

Maybe you are looking for