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.

Similar Messages

  • 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 to a pdf file and show it in the same webpage or in a new tab

    It is no problem to create a link. But the formats are limited and  - unbelievable -  the pdf format is not supported??!
    Where are the parameter (_blank or _self) to show it for example in the same webpage or in a new tab??!

    PDF is media.  It is not a web document.  Your end users must have plug-ins and helper apps installed on their device to see PDFs in browsers.  Depending on their settings, the PDF file may or may not launch in the browser window.  On my system, PDF files download and launch inside Acrobat Professional; not my browser.
    The safest approach is to provide a screenshot on your page with a direct link to the PDF file so people can handle it as they wish.  See example:  http://www.adobe.com/manufacturing/3dpdfsamples/3dsolutions/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • 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

  • Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    I’m using version 11.0.10. So where the Menu resides in a folder ready to be burnt on to a CD, that same folder is where the links point to.
    Thanks

  • 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']

  • RE: How can I create a page break in a file?

    Thank you, Glen. I tried WriteText. But it didn't work.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    From: Glen A. Whitbeck
    Sent: Thursday, September 11, 1997 11:59 AM
    To: Wang, Tien
    Cc: forte-users; owner-forte-users
    Subject: Re: How can I create a page break in a file?
    Instead of using "WriteLine," try using "WriteText" ("WriteLine" writes
    TextData into an open file, while "WriteText" writes data to a stream)
    like this:
    <method 1>
    myFile : file = new();
    myFile.WriteText('\f');
    Glen
    Wang, Tien wrote:
    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the
    following
    two methods, but neither of them works. Specifically, it seems a
    special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    >
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);

    Tien,
    Try myFile.WriteText('\x0c'); instead of myFile.WriteText('\f');
    Regards
    Richard Stobart
    -----Original Message-----
    From: Wang, Tien [SMTP:[email protected]]
    Sent: Friday, September 12, 1997 6:09 PM
    To: Glen A. Whitbeck
    Cc: forte-users; owner-forte-users
    Subject: RE: How can I create a page break in a file?
    Thank you, Glen. I tried WriteText. But it didn't work.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    From: Glen A. Whitbeck
    Sent: Thursday, September 11, 1997 11:59 AM
    To: Wang, Tien
    Cc: forte-users; owner-forte-users
    Subject: Re: How can I create a page break in a file?
    Instead of using "WriteLine," try using "WriteText" ("WriteLine" writes
    TextData into an open file, while "WriteText" writes data to a stream)
    like this:
    <method 1>
    myFile : file = new();
    myFile.WriteText('\f');
    Glen
    Wang, Tien wrote:
    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the
    following
    two methods, but neither of them works. Specifically, it seems a
    special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    >
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);

  • How can I create a page break in a file?

    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the following
    two methods, but neither of them works. Specifically, it seems a special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);
    -----------------------------------

    Tien,
    Try myFile.WriteText('\x0c'); instead of myFile.WriteText('\f');
    Regards
    Richard Stobart
    -----Original Message-----
    From: Wang, Tien [SMTP:[email protected]]
    Sent: Friday, September 12, 1997 6:09 PM
    To: Glen A. Whitbeck
    Cc: forte-users; owner-forte-users
    Subject: RE: How can I create a page break in a file?
    Thank you, Glen. I tried WriteText. But it didn't work.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    From: Glen A. Whitbeck
    Sent: Thursday, September 11, 1997 11:59 AM
    To: Wang, Tien
    Cc: forte-users; owner-forte-users
    Subject: Re: How can I create a page break in a file?
    Instead of using "WriteLine," try using "WriteText" ("WriteLine" writes
    TextData into an open file, while "WriteText" writes data to a stream)
    like this:
    <method 1>
    myFile : file = new();
    myFile.WriteText('\f');
    Glen
    Wang, Tien wrote:
    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the
    following
    two methods, but neither of them works. Specifically, it seems a
    special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    >
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);

  • 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 we create a ABAP object into .ptr file

    HI,
          How can we create a ABAP object into .ptr/.car/.sar format so that we can give it to a remote client and which can be imported into their R/3 system to get the functionality of this object.

    Hello Ramesh
    All you need is SAPLINK. Have a look at the following links:
    <a href="/people/ed.herrmann/blog/2005/11/14/the-enterprise-and-the-bazaar Enterprise and the Bazaar</a>
    <a href="https://sourceforge.net/projects/saplink/">SAPLINK</a>
    Regards
      Uwe

  • Can I create multiple links to the same file without duplicating file?

    does anyone know if it is possible to create multiple links to the same file using iWeb without the program automatically making multiple copies of that file in the published output? It seems that one file is created for each link.
    Thanks!

    Hi Franz,
    have a look at the second method on this page
    http://alyeska.altervista.org/en/iWeb_Downloads.html
    see if you understand how it works (if you don't, please ask me)
    Regards,
    Cédric

  • 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 to create a link for download a file in text format

    Hi expect,
    I want to create a link when I link that link a text file should get download which i'm specified in jsp page. I tried by using hyper link it didn't get downloaded just it opened as it is. How can I resolve the problem.

    Swati.S wrote:
    in href provide another jsp name or servlet and pass filename as request parameter to this jsp or servlet. In called jsp or servlet set content type to application/forcedownload.Yes, that works (usually), but, IMHO, is nothing but a hack that you shouldn't use (and I could care less how often it is currently used in varying hacked scripts, such as this bogus force-download PHP script I've seen). That is an invalid MIME type (or at least unofficial/non-standard mime tye that most browsers will have no association for), so, since the browser doesn't know what to do with it, it'll ask the user what to do. And even that is not 100% certain. All I need do is create a mime-type to application association for that MIME type and, guess what, it doesn't work again (at least not the way you intended).
    The server should not be concerned with what the client does with the file linked to.

  • How can I create a link that allows users to convert a Wiki pages into PDF format.

    I am working on an enterprise Wiki library site collection, but I want to create a link named “Convert to PDF” , which allow users to convert the current Wiki into a pdf file. I need this link to be displayed some where in all the exsiting Wikis pages, and
    on any new wiki page. Can anyone advice if there is already such as capability within sharePoint 2013.
    Thanks

    Hi,
    For your requirement, we can add this link to the master page, then it will appear in the pages which apply this master page.
    To convert the current page to PDF, you can take consideration of using jsPDF.
    The links below with demos for your reference:
    http://parall.ax/products/jspdf
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for