• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Explorer ,
Mar 16, 2023 Mar 16, 2023

Copy link to clipboard

Copied

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!!

 

Views

194

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 16, 2023 Mar 16, 2023

Copy link to clipboard

Copied

LATEST

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources