How to include external Javascript script files?

We have had a number of students run into problems with our LMS.  The support staff at the LMS say that it is due to the version of Java (JRE) that the student is running on their device.  The LMS says that they only support Java JRE version 1.6 and 1.7.
I have found some Javascript on the Oracle site that checks the client JRE version, but it requires that the student brings in one of their Javascript script libraries:
<script src="https://www.java.com/js/deployJava.js"></script>
<script>
    if (deployJava.versionCheck('1.6+')) {
        alert('OK to Continue');
    } else {
        alert('This course will only work Java version 1.6 and up');
</script>
I am familiar with the Javascript windows in various Captivate items.  I am using Captivate version 7.
My question is how can i include the current deployJava.js script lib from https://www.java.com/js/  (and possibly some other script libs) with all courses that I publish from now on?  Is there some template file that I can update so that this script lib is automatically included in all courses that I publish using SCORM 2004 ver. 4?
Thanks

<script src="resources/myscript.js"></script>
I did this exact thing in my jsp but it did not work, nothing popped up.
When I tried replacing it with:
<script language="JavaScript" type="text/javascript"><![CDATA[
function postMessage(message) {
alert(message);
]]></script>
It worked. Can someone tell me why? Can't i refer to javascript files this way?

Similar Messages

  • How to include external JavaScript files

    Hello All,
    i'm wondering haow can i include externel JavaScrip files, there is an clip-example with a function in the same JSP file
    but not how to include a file?
    <body>
    <script language='JavaScript' src="menu/menu.js'></script>
    If some one has a clip i would appreciate.
    Thanks
    Gino

    <script src="resources/myscript.js"></script>
    I did this exact thing in my jsp but it did not work, nothing popped up.
    When I tried replacing it with:
    <script language="JavaScript" type="text/javascript"><![CDATA[
    function postMessage(message) {
    alert(message);
    ]]></script>
    It worked. Can someone tell me why? Can't i refer to javascript files this way?

  • How to include external javascript file in an html

    hello
    i've an html file placed in apache/webapps/test folder this html file includes an external javascript file placed at same level
    i'm includind the file as
    <script src="file1.js"></script>but the file does not gets included
    but when the sam folder "test" is paste outside apache the html file including the external file runs properly.
    Thank You

    flounder wrote:
    cotton.m wrote:
    What's really pathetic is that this is your third cross post on this same stupid off topic topic.
    You are really a dumb f&#117;ck you know that?If they knew that they were a dumb f&#117;ck then they wouldn't be a dumb f&#117;ck!That's a logical and reasonable conclusion. Therefore I very much doubt that the OP is capable of it.
    Hmmm this is interesting. It now shows the entity escapes rather than their values when you quote.

  • How to  include external javascript and css resources to a jsf?

    I need to include external css and javascript files to my jsf page. Using the code below does not work because all the styles on the css page are ignored and the functions within the js files are not executed.
    <link rel="stylesheet" type="text/css" href="/resources/styles/style.css" />
    <script language="JavaScript" src="/resources/javascript/util.js"></script>When I try to execute any js function within a script tag on a jsf page I get an object expected error.
    I googled about my problem and found this piece of code for importing styles for an external css.
    <style type="text/css">
    @import url("/resources/styles/style.css");
    </style>How could I add an external javascript file to my jsf?

    Used the relative urls in my first post as well as these, and both were not working.
    <link rel="stylesheet" type="text/css" href="./resources/styles/style.css" />
    <script language="JavaScript" src="./resources/javascript/util.js"></script>The ./ tells that the external file can be found by starting at the current directory and working down the path to the specified file. This is my directory structure. Index.jsf is the file that references the external js and css files.
    -Webcontent
    |_index.jsf
    |_resources
    |__styles
    | |__style.css
    |__javascript
    |__util.js
    Either way I still can't reference the files that I need. Calling a javascript function results in an object expected error, and the styles are ignored.
    If I include the js file directly in the jsf then I can get it to work. I don't want to do this because I have created a handful of seperate js files, and do not want to include all of them in one page. I am using myfaces and tomahawk if that helps.

  • How to include external files in JSP

    hi,
    How to include external files like image or javascript in to jsp pages.
    I am using MVC frame work. So i have to use request dispatcher. While calling the pages trough dispatcher the external files are missing from the output. Also am using tomcat as server,web.xml(deployment descriptor ) is also configured.
    regards
    sree

    When you use the request dispatcher, the relative path for all your ressources becomes the relative path of your calling serlvet and not the JSP/servlet that you call. Make sure to use the full relative path such as:
    /PATH_TO_YOUR_DIRECTORY/myRessource.ext
    NOT
    SOME_DIRECTORY/myRessource.ext
    Jeff

  • How to include external style sheet

    Hi !!
    Can any one explain how to include external style sheet.

    Anil,
    Simply include the css file as I demonstrated in my last post and then reference one the css classes by name in the "styleClass" attribute of the component. So, if the css file that have included in my JSP file (as demonstrated in the prev post) contains a class like:
    .spicyPink {
    color:#FF1CAE;
    font-weight:bold;
    Then I would simply reference this class in the component as folows:
    <af:outputText value="Pretty In Pink" styleClass="spicyPink"/>
    However, you can also add styling to a component inline and accomplish the same task:
    <af:outputText value="Pretty In Pink" inlineStyle="color:#FF1CAE;
    font-weight:bold;"/>
    The thing to remember is that other than the use of styleClass and inlineStyle, referencing and including css in your JSP/JSPX pages is really no different that used in an HTML page.
    Here is reference to help you along:
    http://www.w3.org/TR/REC-CSS1#containment-in-html
    --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to include more than 12 files in a new PDF document?

    I have a Adobe PDF Pack, and when I click on crating a new PDF document, they say that I cannot combine more than 12 files...!
    And I want to have a document of hundreds of pages!
    Someone can help me?
    Pleeeeaaase!!!!!!

    Hi Hisami,
    Thank you very, very much!
    It is very useful what you explain.
    One only question, since I have the trying version of Acrobat Pro: how many files can you combine at the time with it?
    May be it depends on the files size.
    I tried yesterday to combine 50 files at the time and it just blocked everything...
    Thanks a lot!
    Have a very good day.
    Henric
    Henric Caldas
    30 rue de Belleville
    75020 Paris
    Home : +33.1.46.36.04.55
    Mobile : +33.6.59.08.02.27
    [email protected]
    Le 28 janv. 2014 à 22:48, "H.Spector" <[email protected]> a écrit :
    Re: How to include more than 12 files in a new PDF document?
    created by H.Spector in Adobe PDF Pack (formerly CreatePDF) - View the full discussion
    To combine more than 12 files into a single PDF file:
    1. Combine file 1 to file 12 then name it (combined 1 for example)
    2. Combine file 13 to file 24 then name it (combined 2 for example)
    3. Keep doing those steps #1 and #2 then combine "combined 1, Combine 2.....Combine 12).
    Another way is to use Adobe Acrobat. Please download Acrobat XI Pro Trial version from www.adobe.com or you can upgrade your subscription to Acrobat Plus(please see more information about Acrobat Plus subscription at https://www.acrobat.com/acrobatplus/en/home.html?trackingid=JPZKR).
    In Acrobat XI Pro:
    1. Launch Acrobat
    2. Select "File" menu > Create > Combine Files into a Single PDF
    3. Click "Add Files" button at top left corner
    4. After adding your files click "Combine" button at the bottom of the dialog.
    Thank you
    Hisami
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6062261#6062261
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6062261#6062261
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6062261#6062261. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe PDF Pack (formerly CreatePDF) at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to load external storage html file in web view

    hi all,
        how to load external storage html file in web view, please help me
       " ms-appdata://local/index.html" not working
    veerasuthan veerakesan

    It need be read as string. Then load the string by  Webview.NavigateToString.
    Sample as below
    string htmlstring = string.Empty;
    try
    var htmlfile = await Windows.Storage.ApplicationData.Current.LocalFolder.OpenStreamForReadAsync("a.html");
    using (System.IO.StreamReader streamReader = new System.IO.StreamReader(htmlfile))
    htmlstring = streamReader.ReadToEnd();
    webview.NavigateToString(htmlstring);
    catch(Exception ex)
    Debug.WriteLine(ex.ToString());
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • How to run an Oracle Script File

    Hi,
    Please anybody tell me how to run an Oracle script file (*.sql file) from Query template.
    In SQL*Plus we run a script file as @Script_file_name.sql
    how do we do it in Query Template.

    Dave,
    Please only post your question in one thread at a time....
    [SAP xMII synchronus commincation|SAP xMII synchronus commincation]
    Sam

  • Including external javascript and css files in servlet

    Hello,
    I am struggling to generate an HTML page from within a servlet using external javascript and css files. I am not sure how to point the servlet to the external files.
    Any code sample to accomplish the above will be much appreciated.
    Thanks inadvance,
    Antana.

    Can't you just include the following in your servlet?
           response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Getting CSS</title>");
            out.println("<link rel='stylesheet' type='text/css' href='yourCSS.css' />");
            out.println("<script language='JavaScript' SRC='yourScript.js'></script>");
            out.println("</head>");
           //...

  • How to include external .js file into .ear file using NetBean 5.5.1?

    is it possible to include external .js file into .ear file using NetBean 5.5.1? if not, then where should I placed the external .js file and how to write the src="xxx" element? (that is , how to write the path of "xxx"?)
    I am using JBOSS 4.2.2 GA as server
    thx!!

    Even this is also not possible because, the code in that package is developed by DWR and i am just adding it to my lib folder and importing the respective classes. In the same manner i need to include the *.js* file in the JSP.It took me about 3 minutes reading through the [DWR Getting Started|http://getahead.org/dwr/getstarted] page to learn that you don't have to do any of that. Perhaps you should read that page?

  • How can I include external javascript/css/html

    Hi there
    I want to create a analyser bar for when music plays in my edge project, can anyone let me know how to include a external file wthin my project? Is it a yepnope fuction?
    http://www.developphp.com/view.php?tid=1348
    Here is the link I am using as a tutorial for creating the analyser...

    You're welcome, George
    Say you have a symbol whose instance is named slider,
    and the symbol has an element named phrase (an empty
    text element used as a container for the html snippets
    you load in it) :
    var $phrase = sym.getSymbol('slider').$('phrase');
    var filename = buildFileName(); // a function defined elsewhere
    $phrase.load( 'text/' +filename +'.html');
    The HTML file contains a html snippet, that is to say what
    you would normally write inside <body> (no <header>).
    Gil

  • How to include External files

    Am Developing an application using servlet jsp and jakarta tomcat 5. Am using MVC frame work also web.xml(deployment descriptor). I could not include script files and image files in my jsp page as its not getting those file although i specified the path currectly. plz help me.
    regards
    sree

    When you use the request dispatcher, the relative path for all your ressources becomes the relative path of your calling serlvet and not the JSP/servlet that you call. Make sure to use the full relative path such as:
    /PATH_TO_YOUR_DIRECTORY/myRessource.ext
    NOT
    SOME_DIRECTORY/myRessource.ext
    Jeff

  • How to include External .JS File in .aspx and .ascx page???

    This is my Code::
    .aspx Code:::
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Calculator_Using_UserControl_And_Js.aspx.cs" Inherits="Calculator_Using_UserControl_And_Js" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
     <title></title>
      <script src="/JS/JavaScript.js" type="text/javascript"></script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div align="center"> 
            <p style="color:brown">Welcome to User Control Page</p> 
            A:<asp:TextBox ID="tbA" runat="server"></asp:TextBox>
            B:<asp:TextBox ID="tbB" runat="server"></asp:TextBox>
            <asp:Button ID="btnAdd" runat="server" Text="ADD" OnClientClick="return fnAdd()"/>
            <asp:Button ID="btnSub" runat="server" Text="SUB" OnClientClick="return fnSub()" />
        </div>
        </form>
    </body>
    </html>
    .JS code
    function fnAdd() {
        var v1 = document.getElementById(tbA).value;
        var v2 = document.getElementById(tbB).value;
        var res = parseInt(v1) + parseInt(v2);
        alert(res);
        return false;
    function fnSub() 
        var A = document.getElementById(tbA).value;
        var B = document.getElementById(tbB).value;
        var res = parseInt(A) - parseInt(B);
        alert(res);
        return false;
    I 've tried with the following methods but no use...
    <script type="text/javascript" src="<%= ResolveUrl ("~/Scripts/MyScriptFile.js") %>"></script>
    <script type="text/javascript" src="../JScript.js"></script>
    <script src="javascript.js" ></script>
    Thanks & Regards RAJENDRAN M

    You can write JS function as follows:
    function fnAdd(numberA,numberB,totalT) {
    var v1 = document.getElementById(numberA).value;
    var v2 = document.getElementById(numberB).value;
    var total = parseInt(v1) + parseInt(v2);
    document.getElementById(totalT).value = total;
    return false;
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    <script src="javascript.js"></script>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    A: <asp:TextBox ID="numberA" runat="server"></asp:TextBox><br />
    B: <asp:TextBox ID="numberB" runat="server"></asp:TextBox><br />
    T: <asp:TextBox ID="totalT" runat="server"></asp:TextBox><br />
    <asp:Button ID="btnAdd" runat="server" Text="Add" OnClientClick="return fnAdd('numberA','numberB','totalT');" />
    </div>
    </form>
    </body>
    </html>
    And you can do the same for fnSub

  • How to include the Java Script in the Framework page

    Hi,
      I need to include the javascript in the framework page.
    If possible , how to do that ?
    Thanks in advance,
    Saravanan Dharmaraj

    Hi,
    I have included the javascript in my JSP pages as follows.Please try the same for your framework page.
    <script Language="JavaScript"
    src="<%=componentRequest.getWebResourcePath()%>/scripts/Timesheet.js(name of the javascript file)"></script>
    The javascript file is stored in the scripts folder.
    Thanks and Regards,
    Sanad Suman

Maybe you are looking for

  • Help! Spry Tabbed Panels

    Hi, I have a problem with my spry tabbed panels. The default tab is set to be the 1st tab, when I move to 2nd tab and navigate through the content, as the page refreshes, and before it is fully loaded it shows the content of the first tab for about 2

  • Z10 Syncing with Outlook

    I am having difficulties getting a Z10 to sync with Exchange Cloud Service. I guess I have the following questions: 1. Is this even possible? I do not have a BES 2. What server address do I need to use? I was informed that it need to be the direct ou

  • PC w/ vista using AE as launchpoint- Cant see Admin Utility to set password

    I have a HP laptop with VISTA. Wireless connection is ok with AE but running w/o a password. I want to set a password. read some of the work arounds rescan or choose "other" retype the IP address and password "public" - no dice. I'm about ready to to

  • Cost Center Assignment in OKB9 issue

    Hi All. I have one issue related to Cost Center Assignment. 1.Our profit center structure is based on Product 2. 70% of FG we get from Sub Contracting and thus we have to pay sub contracting charges to them for that. 3  sub contracting charges  GL ac

  • Copy UDF fields from one user to another user with similar authorizations.

    Hi, Is there a way to copy UDF fields viewable to one user to another user wihtout manually checking the boxes in Form Manage User Fields? if so how can it be done? Jyoti