Skip to main content
Known Participant
March 4, 2013
Answered

How to open an HTML page that is part of my project using Captivate 6

  • March 4, 2013
  • 2 replies
  • 1673 views

I'm looking to create an HTML page that will use some javascript to extract information from Captivate and then render it to the browser window as a report.

I see how you can Open a  URL webpage from Captivate (by putting in an explicit address ie www.abc.com   or http://www.abc.com/myReport.html)

but I'm curious what address I can use if the html file is in the SAME folder at the index.html that launches the captivate project  (or perhaps one folder down)..    I'm wanting to do this so it works whether I've published the project to a webserver or not.

I was thinking I could use a relative reference (ie  something like .\myReport.html), but I haven't had any luck thus far

This topic has been closed for replies.
Correct answer SethXP

Ad hoc solution until Captivate demigods could provide us with a built in server.

Copy the dependencies to the said folder i.e:  C:\Users\Tom\AppData\Local\Temp\CP2840464090993Session\CPTrustFolder28 40464091009\CaptivatePreviewLoader\ ) then you'll be able to simply F12 it and preview your course. Remember, this is based on a single CP session. If you close out of CP, you'll lose this functionality and have to copy those files into the new session folder again.

Closing the project should not affect it this way, only closing the application should.

Seth

2 replies

Inspiring
March 5, 2013

If all your project files are in the same folder then simply use "myReport.html" to link to it. Do not include path info.

If the myReport.html file is in a different folder, say one down, then your link should read "NewFolder\myReport.html", again no path info.

Seth

TwmazAuthor
Known Participant
March 5, 2013

Thanks Seth.

I just tried that, but when I run it in preview mode (by simply hitting F12), it gives me an error because it can't  find the file in the temporary preview folder it creates (ie:

C:\Users\Tom\AppData\Local\Temp\CP2840464090993Session\CPTrustFolder2840464091009\CaptivatePreviewLoader\

I'm hoping to find a place to put it so that it works when running F12 and when running in regular 'published' mode

I was thinking I could put it in the 'C:\Program Files\Adobe\Adobe Captivate 6 (32 Bit)\Templates\Publish' folder, but when I do that, it doesn't seem to gete copied to the .\CaptivatePreviewLoader folder when running F12

SethXPCorrect answer
Inspiring
March 5, 2013

Ad hoc solution until Captivate demigods could provide us with a built in server.

Copy the dependencies to the said folder i.e:  C:\Users\Tom\AppData\Local\Temp\CP2840464090993Session\CPTrustFolder28 40464091009\CaptivatePreviewLoader\ ) then you'll be able to simply F12 it and preview your course. Remember, this is based on a single CP session. If you close out of CP, you'll lose this functionality and have to copy those files into the new session folder again.

Closing the project should not affect it this way, only closing the application should.

Seth

Anjaneai_Srivastava
Adobe Employee
Adobe Employee
March 4, 2013

Your approach seems right, you should probably put in the Filename over there and then publish. In the output, put in the HTML file in the root. If you are using a relative, path you may navigate that to a folder or two down as required.

Thanks,

Anjaneai

TwmazAuthor
Known Participant
March 4, 2013

Anjaneai-

Thanks for the reply.. is there a way so that I can just hit the 'F12' key  from captivate (to preview the project in the web-browswer) and have it load up the correct HTML file (just find it in the root) .. BUt then when I got to publish it to a web-server, it'll also know to simply look in the root folder to find the HTML file.. I was hopign there was some way to do this with some sort of relative pathing syntax.