Skip to main content
Inspiring
March 16, 2023
Question

Cp2019 has broken an Action from Cp2017: Open URL or file

  • March 16, 2023
  • 1 reply
  • 262 views

First, thank you for bothering to read about my problem.  I really appreciate it.

My course has a button with an action "Open URL or file".  Since the client wants all the links to external websites editable outside of Captivate, I would create an alias(?) for the website as a text file that looks like this, saved as the name "Pay_allowances_page.htm"

If I double click this text file (.htm file) the URL shown opens correctly.

Here's the HTML for the "Pay_allowances_page.htm" to launch the page and its URL:

-------------------------------------------------------------------------------------------------------------------------------------------------

<HTML>
<HEAD>
<TITLE></TITLE>
<meta http-equiv="refresh" content="0; URL='https://www.mynavyhr.navy.mil/Support-Services/Pay-Pers-Support/CPPA-Resources/Pay-Allowances/'" />
</HEAD>
<BODY>
</BODY>
</HTML>

-------------------------------------------------------------------------------------

Now, in Captivate my button has this action:

"Open URL or file" and I put the name of the text file (Pay_allowances_page.htm) into the "URL:" field. This successfully would launch the web page in a new tab (I select "New" under the drop down).

NOW - in v2019, under the same scenario I get this error:

Cannot GET /preview/HTML5Temp6200782237296Pre/Pay_allowances_page.htm

The only way I can get the button to work now in v2019 is to put the full URL into the "URL:" field. This is a huge headache as I have lots of buttons loading lots of pages. Any ideas on how to fix? I don't know JS very well but am willing to learn, for sure.
THank you people!!

 

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    March 16, 2023

    I just checked this out in version 11.5.5.553:

    • Created a simple button
    • Attached Open URL to the Success event of the button
    • copied the URL you provided
    • All works fine, the webpage opened

    Personally I always link to the index.html file but that is not necessary.

    FYI I used the Blank theme, and I don't have any SWF-related items/features in the project. Can you check the HTML Tracker?