How to apply external Javascript menu?

Hi gang.

I am trying to include a drop-down menu in each topic in a project using RoboHelp 8. This menu uses Javascript and jQuery library to implement drop-down lists, which requires two external .js files. In addition, there is a function call that activates the menu and the HTML file for the menu itself. I have trouble to get this working.

The site where I got the menu is located at: http://www.egrappler.com/multi-level-hierarchical-jquery-menu-jqsimplemenu/

So far, I put the js and function references in the section head of a master page:

"< script type =" text/javascript"src="js/jquery-1.7.1.min.js "> < / script >

< script type = "text/javascript" src = "js/jqsimplemenu.js" > < / script >

< script type = "text/javascript" > / / <! [CDATA]

$(document) .ready (function () {}

$('.menu').jqsimplemenu ();

});

[]] > < / script >

I added the JS files as luggage in the project.

I put the HTML code in a excerpt of code and then that placed in the page master, as well. The menu appears, but does not have the JavaScript code to create drop-down lists. I also placed calls js and function in the code snippet with the same result. I also tried different path options, such as adding a bar slash leading to the path of the CBC (/ js/jqsimplemenu.js) and referring to the root of the project (... / jqsimplemenu.js).

The only time I can get the menu to work is when I place the JS calls and function directly on each topic, which is not really ideal or effective in our team environment.

Any thoughts? Thank you.

-= Ed.

Hello

So far, I put the js and function references in the section head of a master page:

Have you added the script in thesection or in the master page header? I suggest that you create a master page header and add the code here. RoboHelp can create paths relative to the file of the different headings when you build.

Take a bow

Willam

Tags: Adobe

Similar Questions

  • Apex plugins - how to reference the attributes in external javascript plugin?

    Hello

    I created a plugin for item-level.
    It works very well, however I have faced with a new problem - I need to make reference to attributes in the external javascript code of the plugin.

    Here's some of my Javascript:
    function boxesCheck(){
     var itemName = "P" + getAPexVariable("APP_PAGE_ID") + "_DESCRIPTION_ML";  
     var vResult = "";
     
     if(document.wwv_flow.f30.length>0){
       for (var i = 0; i<document.wwv_flow.f30.length; i++) {
           document.wwv_flow.f30.checked=true; 
         
    vResult = vResult + '[' + $.trim(document.wwv_flow.f32[i].value) + '|' + $.trim(document.wwv_flow.f33[i].value) + ']';
         
    }
    }else{
    document.wwv_flow.f30.checked=true;
    vResult = '[' + $.trim(document.wwv_flow.f32.value) + '|' + $.trim(document.wwv_flow.f33.value) + ']';
         
    }
         
    $x(itemName).value = vResult;

    apex.submit();
    }

    function addRow_new(){
    $('#report-standard1').append('<tr class="highlight-row1"><td class="data" headers="CHECK$01"><input type="checkbox" name="f30" value="1" onclick="highlight_row1(this,1)" id="f30_1" /></td><td class="data" headers="LANG"><input type="text" name="f32" size="80" maxlength="100" value="" style="width:85px" size="12" id="f32_1" /></td><td class="data" headers="DESCRIPTION"><input type="text" name="f33" size="80" maxlength="100" value="" style="width:345px" size="46" id="f33_1" /></td></tr>');

    }


    In the above code 2 values has to be substituted by plugin's attributes:
    1st function: var itemName has to receive the plugin's Item Name.
    2nd function: #report-standard1 has to be substituted by plugin attribute.

    How to do it please?
    Thank you!

    Hi Sloger,

    Modify your function to accept two parameters, something like this

    function boxesCheck(pParam1,pParam1){
    //and use them as required within the function
    ...
    .
    .
    

    How you call this function of boxesCheck of your plugin? He must be somewhere in your plugin code.

    Simply pass those two values as parameters

    Thank you

  • How to apply CSS to a menu of BC

    Hello

    I did a lot of reading, went to BC gurus, watched Liam on Web Menu V2and post I'm still stumped on this one. The tutorial of BC and point of Liams gurus were well above my head.

    How do you apply CSS that you wrote to a menu of BC?

    I've set up a BC menu and put in. The type of menu is CSS (HTML)

    The menu items have a name, a link to the page height of the element of 30 and .menuLeft in CSS class name

    The model, that the menu is is reactive and bound to a stylesheet with the CSS code below inside.

    The menu is completely affected by the CSS in the stylesheet. All menu items have a point in front of them and look like the style of the default link for the site.

    The CSS below is therefore not affect menu items. Why is this?

    What stage of basic, simple I am missing here?

    How can I get the menu in British Colombia to pointed out the CSS below?

    I also tried to make the CSS in an id #menuLeft and put in the name of element ID field in each menu item. The CSS is still completely ignored. Why? (anguished cry)

    {.menuLeft}

    list-style-type: none;

    }

    .menuLeft ul {}

    list-style-type: none;

    padding: 5px;

    margin: 0px;

    line-height: 30px;

    border: thin solid #CCCCCC;

    border-radius: 3px;

    text-decoration: none;

    }

    .menuLeft li a: link {}

    color: #3F823D;

    text-decoration: none;

    }

    .menuLeft li a: visited {}

    text-decoration: none;

    color: #999999;

    background-color: #B9E09A;

    }

    .menuLeft Li a: hover {}

    color: #999999;

    text-decoration: underline;

    background-color: #B9E09A;

    }

    .menuLeft li a: active {}

    color: #999999;

    text-decoration: none;

    background-color: #B9E09A;

    }

    Mary,

    Get her out. before menuLeft in the element's Css class name.

    Penny

  • How to read the Captivate in external JavaScript variables

    Hello

    I want to develop the combination of quiz questions and test me Captivate simulations. And send the results to external JavaScript, so I can save it in the database.

    I have published the Captivate to HTML5, typed this code in an external .js file, and linked to index.html, but I get only the alert 'no ICC interface' interface is not detected, according to me. I tested from a local web server. Any ideas?

    ==============================================================================

    var interfaceObj;

    var eventEmitterObj;

    window.addEventListener ("moduleReadyEvent", function (evt)

    {

    evt. Data gate through the interface.

    This is the same as window.cpAPIInterface

    interfaceObj = evt. Data;

    eventEmitterObj = interfaceObj.getEventEmitter ();

    });

    Make sure window.cpAPIInterface is available

    If (interfaceObj)

    {

    Make sure window.cpAPIEventEmitter is available

    If (eventEmitterObj)

    {

    Add a listener for the CPAPI_SLIDEENTER event

    eventEmitterObj.addEventListener ("CPAPI_SLIDEENTER", function (e)

    {

    bogus var = interfaceObj.getVariableValue("slideNumber");

    Alert (cAns);

    window.cpAPIInterface.setVariableValue ("mySlideVisitCounter", lSlideVisitCtr);

    });

    }

    } else {}

    Alert ("No. IPC interface")

    }

    You're talking about data are not in this case, the window.

    eventEmitterObj.addEventListener ("CPAPI_QUESTIONSUBMIT", function ( e ) {}

    bogus var = e.Data.correctAnswer;

    Alert ("correctAnswer =" + cAns);

  • How to call the function of reading edge animate external JavaScript


    I have a symbol on the stage called "basket"... on the inside of the symbol is my graph that has a trajectory put on to the timeline (it's called "car_v1").

    On my stage, I have a code to hide the cart symbol with a class of external style sheet:

    SYM. $("panier") .addClass ("hidden");  (it's the css - .hidden {display: none ;})})

    I have a function that calls a file external javascript... Since this external file, I want to get the animation of scenario to work:

    This is the function call:

    checkCar();

    and here's the function:

    function checkCar() {}
    If (AdobeEdge.countCar == 5) {}
    AdobeEdge.getComposition("EDGE-172492634").getStage ().$("cart").removeClass ("hidden"); This works!
    AdobeEdge.getComposition("EDGE-172492634").getStage ().$("cart").play (); does not work!        <-this is the line I need help!

    sym.getSymbol("cart").play (); It works inside the border and the scenario animation works!

    }
    }

    Can someone help me get the playback feature to work my external javascript file? Thank you!

    Kristen

    Hello

    You can try:

    function checkCar() {}

    If (AdobeEdge.countCar == 5) {}

    iCall var = AdobeEdge.getComposition("EDGE-172492634").getStage ();

    iCall.$("cart").removeClass ("hidden");

    iCall.getSymbol("cart").play ();

    }

    }

  • How to call the sym.stop to an external javascript

    I tried different ways to call the sym.stop function, but not being able to stop the animation of an external javascript. Help, please

    Hi, metalshan-

    I posted a sample file in response to the same question by another user:

    http://forums.Adobe.com/message/5289458#5289458#5289458

    Hope that helps!

    -Elaine

  • How to apply internet traffic in VPN tunnel users

    Hello

    Perhaps it is a simple matter to most of you, but it confuses me right now.

    Here's my situation:

    home - internet - ASA 5510 users - CORP LAN

    We have remote Ipsec VPN and anyconnect VPN, I think that the solution must work on two of them.

    My question is: "how to apply internet traffic user home to the VPN tunnel?

    We have "split tunnel" to only"'interesting traffic' VPN tunnel access LAN CORP.

    but now I need apply all traffic (internet + CORP LAN) user through VPN tunnel passes.

    so far, I did what I know:

    1. remove the "split tunnle" group policy

    2. the address in "remote user VPN address pool" are perhaps NAT/PAT travers ASA5510

    but I don't get why it doesn't work.

    all suggestions are appreciate!

    Thank you!

    A few things to configure:

    (1) Split tunnel policy to be passed under split in tunnelall tunnel

    (2) configure NAT on the external interface to PAT to the same global address.

    (3) configure "allowed same-security-traffic intra-interface" so that the tunnel VPN for Internet traffic can make a u-turn.

    Please share the current configuration if the foregoing still does not solve the problem. Thank you.

  • External javascript file in the page login.html Campus Mobile

    Hello


    We try to load an external javascript file of Mobile Campus of Oracle application login.html page.  The code works in the Android app, but not the IOS app.  Here is a code snippet:

    Can you offer any help on how we can get the javascript code to load correctly for iOS?  The code is not local to the application is because we're going to make changes so that it displays various messages on the login page at different points throughout the year.

    Thanks for any help you can provide!

    Just wanted to give everyone an update and let you know that we have understood the question.

    in the file Application.xml - MAF, we added our URL to the white list (Security tab).  This allowed the application to invoke successfully the javascript code for the external file.  I hope it is useful to someone, as it seems to help others / Oracle support on this forum is unlikely.

  • Calling an external javascript variable in captivate

    I need captivate to reference an external JavaScript variable to check if its value is 1 or 0. If the value is '1' I need to display a button, if the '0' button is hidden.

    The reason why I need external is I want the customer to be able to change the value of the variable without having to republish files.

    I know not if I add a JavaScript file and folder to "program Adobe Captivate 9 x64\HTML\assets", it will be always published whenever captivate publishes, the question is how Captivate to refer to the variable in the JavaScript file?

    I use the latest version of Captivate 9.0.2 publish HTML5

    Thank you

    Gary

    Thanks for your suggestions of Peter!

    I managed to make it work last night using a different method.

    First set the variable 'SP_Assess_Included' in Captivate with a default value of 0.

    Then, I went in the folder "C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML" and changed "index.html".

    Then I added the following line in the

  • Prompt to add external JavaScript

    How can I get Dw CC 2015.1 build 7851 for ask the location of an external JavaScript when I add the < script tag?

    Thank you

    When the browse option appears, you press enter/return, and it will bring up a dialog box browse to a normal file.

    If you type

  • I got a new serial number / license of Adobe support. How to apply to a Lightroom 5.5 installed that I currently have?

    I got a new serial number / license of Adobe support. How to apply to a Lightroom 5.5 installed that I currently have? I can't to develop, since the temporary license has expired.

    Hello

    Click on the Help menu (Windows) / Lightroom menu (on Mac) and choose the option Sign in, and then click license this software if prompted and enter your serial key to activate the program.

    If this does not work, please let us know the exact message that you see in the develop Module.

  • How to apply image (logo) to subject imported 3ds?

    I have a model 3ds of a golf ball, that I bought. It is important in my Photoshop CC. I was not able to understand how to apply a picture (my logo) on the surface of the golf ball. Also, the golf ball has a dimpled surface so I want the image to follow the contours of the ball, as if she would run the logo were painted on a real golf ball.

    EDIT: Also, I would like to keep the ball in golf as a 3d object so I can animate in a scene.

    Thank you, Jerry

    Several things you do differently.

    1. create the new document 3000X3000px.  It is a layer of white.

    2. in the menu 3D open golf ball file by selecting "new layer 3D file.

    3. Select the layer of the Golf Ball and change the 'paint system' to 'Projection.

    4. open the diffuse layer golf ball texture map and resize it to 5000 X 5000 px.  Save and close.

    5. Logo layer slip into golf ball file (I opened then she slipped over it, but you can also use 'Place', but you may have to rasterize the layer before merging to the bottom - not sure about that.)  Logo layer will be just above golf ball layer.

    6. select just logo layer and use ctrl/cmd-E to merge down.

    The key is the size of the broadcast of the golf ball layer before you merge the logo.  I didn't size layer of the logo at all in my example, but you could have it adjust the way you want.

  • page element to reference in the external JavaScript file

    Hello

    Anyone know how I can refer to page within an "external JavaScript file elements?" Things such as $v ('P3_ITEM1') and & P3_ITEM1. works great if I put the JavaScript code directly in the page header - section of JavaScript. For ease of maintenance, I want to move these JavaScript codes in the external file on the server. I tried the two $v ('P3_ITEM1') and & P3_ITEM1. and they do not work in the external JavaScript file - 4.1.0.00.32 apex.

    Thank you.

    Andy

    Andy,

    Something like this should work. You should not add pAppID or pSession as parameter, if they will always be entries on the page.

    APP_ID: $v('pFlowId')
    SESSION: $v('pInstance') 
    

    and make sure that all substitution strings are replaced.
    >
    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS =?', 0);
    >

    Kind regards
    Janet Tyson

  • How to call the javascript function in ADF

    I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.

    Kind regards
    Surya

    Published by: sgodavar on Sep 24, 2010 11:44

    Include JavaScript to the jsff/jspx as page:

    Call it like:

    Type = "dblClick" / >
    Amit

  • JavaScript menu bar is lost behind the .swf file

    I have a drop down of the bar menu that was created using javascript. I have insterted a photo gallary swf file created in Flash. The problem is that the menu bar disappears behind the .swf file. How can I make the menu to show the photo gallary bar?

    Thank you!

    All active content on a page will always come to the top, so to speak,
    including Flash, some elements of form, Java applets and controls Active X.
    This means that each one will push through the layers. It is not a good
    Cross-browser/platform reliable way to solve this problem, but if you can be
    confident in your visitors using IE 5 + or NN6 +, you can then use the Flash
    setting wmode (However, Safari does not support this correctly!).

    PVII article:
    http://www.Projectseven.com/support/answers.asp?ID=127

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "SuperG08" wrote in message
    News:gg3v5k$G47$1@forums. Macromedia.com...
    > I have a drop down of the bar menu that was created using javascript. I have insterted
    > a
    > photo gallary swf file created in Flash. The problem is that the menu bar
    > disappears behind the .swf file. How can I get the menu bar to display in
    > front of the photo gallary?
    >
    > Thank you!
    >

Maybe you are looking for

  • I would like to be able to display the clock on my computer

    When I run Mozilla it takes my screen and I would still be able to see the clock in the bottom right of my computer screen. How to allow me to see my clock?

  • Mobile Firefox installed on Dell Streak5 running Android 2.3.3 but the police is hieroglyphs

    Simply download and install mobile Firefox on my Dell Streak5, Android 2.3.3 running. Seems to be installed ok but the police or English is not the language. It looks like hieroglyphics with just symbols, fractions, arrows, etc.

  • Satellite Pro L50 - A - does not function keys

    Hello I just bought the L50, but the function button did not work. I tried to reboot, reinstall the utilities, but it did not help. I couldn't find the "restart flash card" also. Can anyone help? Thank you!

  • A7VBX - THE mobo of?

    I found an old motherboard (which computer, I have no idea) and threw with a bunch of orphaned pieces and surprisingly have a working computer under OS 2 questions (1) I am looking for a manual for this motherboard and the only thing I know is he cam

  • Phase shift USRP N210 WBX has not remained constant

    Hello Here's the anouced; After setting the RF front end, each local oscillator can have a random phase offset by separators in the VCO/PLL channels. This shift will remain constant after initialization of the device and will remain constant until th