Forum Discussion

Dennis-OHara's avatar
Dennis-OHara
Community Member
14 years ago

Lancher file modification?

Hello,

I am trying to modify the launcher.html file so that it launches the presentation into a new window when the button is clicked and not when the launcher page is first loaded.

Within the lancher.html page code it gives instructions on how to do this:------"To launch the presentation when a button or link is clicked, call LaunchPresentation when the onClick  event is triggered".

Where, and what, do I change within the launcher.html file in order to do this?

Thanks,

Dennis

3 Replies

  • articulates's avatar
    articulates
    Community Member

    Hi Dennis,

    You'll have to edit few files to launch the presentation in a new window:

    1. launch.html

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
     <HEAD>
      <TITLE> Launch </TITLE>
      <META NAME="Generator" CONTENT="EditPlus">
      <META NAME="Author" CONTENT="">
      <META NAME="Keywords" CONTENT="">
      <META NAME="Description" CONTENT="">

      <script language="javascript" src="js/scorm_api.js"></script>
      <SCRIPT type="text/javascript">
      function fnOpenCourse()
      {
       window.open("index.html","_blank", "width=1018, height=654");
      }
      </SCRIPT>
     </HEAD>

     <BODY onLoad="initSco()" onUnLoad="finish()">
      <table cellpadding="0" cellspacing="0" width="100%" height="100%">
       <tr>
        <td align="center" valign="middle">
         <input type=button value="Click to Open Course in new window" onClick="fnOpenCourse()">
        </td>
       </tr>
      </table>
        </BODY>
    </HTML>

    2. Also to your js file update the bookmark data as:

    BookMark_data="+window.opener.fnGetBookMark()+"

    Hope this helps!

    Thanks,

    Garima

    • AndreaVelasquez's avatar
      AndreaVelasquez
      Community Member

      Hi Dennis, I am trying to figure this same thing out now, and it I am having a hard time understanding the instructions they provided. Did he mean to create a new file named launch.html or did he mean to use the launcher file that is already in there and delete all the code and just add this new code?

      Please help. I have run into a wall and would love to get some help on this.