open file when published to both HTML and EXE

gs_ek
Community Member Posts: 1
Hello all,
I did a lot of searching and testing could not seem to find a solution to my problem:
I need to be able to open PDF files from within the Lectora (version 2008) title. When published to HTML the PDF should always open in a new window and never replace the main content window. When published as an EXE the PDF should simply open, but opening in a browser window would be acceptable as well.
My solution was to attach an action that contains a conditional to the button that launches the PDF (this should also work for any other type of embedded file).
The default On Click that is built into the button properties is left blank.
I attached an Action that is built as follows:
General Tab:
On Mouse Click
Launch a program/document
Use attached file
[pdf file selected in the list]
Condition Tab:
Perform action if TRUE
Browser Type Contains "Lec"
Else Tab:
If the conditions are not met
GoTo Web Address
[file name of the pdf chosen in the list on the General tab, no path, just the name ie. 'Intro.pdf']
Open in new window
The combination of the General, Condition , and Else tabs allows me to open the exact same document when the project is published as either HTML or EXE with one low-maintenance button.
ENJOY!Hello all,
I did a lot of searching and testing could not seem to find a solution to my problem:
I need to be able to open PDF files from within the Lectora (version 2008) title. When published to HTML the PDF should always open in a new window and never replace the main content window. When published as an EXE the PDF should simply open, but opening in a browser window would be acceptable as well.
My solution was to attach an action that contains a conditional to the button that launches the PDF (this should also work for any other type of embedded file).
The default On Click that is built into the button properties is left blank.
I attached an Action that is built as follows:
General Tab:
On Mouse Click
Launch a program/document
Use attached file
[pdf file selected in the list]
Condition Tab:
Perform action if TRUE
Browser Type Contains "Lec"
Else Tab:
If the conditions are not met
GoTo Web Address
[file name of the pdf chosen in the list on the General tab, no path, just the name ie. 'Intro.pdf']
Open in new window
The combination of the General, Condition , and Else tabs allows me to open the exact same document when the project is published as either HTML or EXE with one low-maintenance button.
ENJOY!
I did a lot of searching and testing could not seem to find a solution to my problem:
I need to be able to open PDF files from within the Lectora (version 2008) title. When published to HTML the PDF should always open in a new window and never replace the main content window. When published as an EXE the PDF should simply open, but opening in a browser window would be acceptable as well.
My solution was to attach an action that contains a conditional to the button that launches the PDF (this should also work for any other type of embedded file).
The default On Click that is built into the button properties is left blank.
I attached an Action that is built as follows:
General Tab:
On Mouse Click
Launch a program/document
Use attached file
[pdf file selected in the list]
Condition Tab:
Perform action if TRUE
Browser Type Contains "Lec"
Else Tab:
If the conditions are not met
GoTo Web Address
[file name of the pdf chosen in the list on the General tab, no path, just the name ie. 'Intro.pdf']
Open in new window
The combination of the General, Condition , and Else tabs allows me to open the exact same document when the project is published as either HTML or EXE with one low-maintenance button.
ENJOY!Hello all,
I did a lot of searching and testing could not seem to find a solution to my problem:
I need to be able to open PDF files from within the Lectora (version 2008) title. When published to HTML the PDF should always open in a new window and never replace the main content window. When published as an EXE the PDF should simply open, but opening in a browser window would be acceptable as well.
My solution was to attach an action that contains a conditional to the button that launches the PDF (this should also work for any other type of embedded file).
The default On Click that is built into the button properties is left blank.
I attached an Action that is built as follows:
General Tab:
On Mouse Click
Launch a program/document
Use attached file
[pdf file selected in the list]
Condition Tab:
Perform action if TRUE
Browser Type Contains "Lec"
Else Tab:
If the conditions are not met
GoTo Web Address
[file name of the pdf chosen in the list on the General tab, no path, just the name ie. 'Intro.pdf']
Open in new window
The combination of the General, Condition , and Else tabs allows me to open the exact same document when the project is published as either HTML or EXE with one low-maintenance button.
ENJOY!
Categories
- 35.9K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 25 ELB Learning Content
- 25 ELB Learning Content Discussions
- 327 CenarioVR®
- 194 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 42 Rockstar Learning Platform®
- 39 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 936 All Things eLearning
- 37 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products