Implementing javascript for Navigationbar footer and Banner

Our company has predefined layouts retrieved by js-files. I put the js files within the projects folder. More detailed I put them in a folder called javascript. This folder is located in the following folder "Project name"\src\web, i.e. the folder where jsp pages are normally stored by JSC. That`s why I reference the js files which should generate the borderlayout in the following way:
<script language="javascript" src="<intranet url/header.js" type="text/javascript"/>
                <script language="javascript" src="/javascript/horizontalnav.js" type="text/javascript"/>
                <script language="javascript" src="/javascript/leftnav.js" type="text/javascript"/>
                After that i invoke three methods from the js files, whereas the header.js is centrally maintained and the main file.
<SCRIPT language="javascript" type="text/javascript">
Running th eapplication doe not make navigation bar appear. I do not know why. Should I put the js files elsewhere (I cannot imagine)?
On the other hand it is no porblem to work with a company wide css document, which is also, like header.js, referred to by a intranet url and not located locally. So I really got no clue!!!!!!!!!!!! PS: I placed all js code in the body of the jsp page; first the reference an then the invocation of methods. Does anyone has ade similar experiences and resolved such a problem, any hints would be very appreciated Thanks
{drawHeader();
drawLeftNavigation();
drawFooter();
}

It is not obvious that your code sample truly illustrates what you are doing, but the "src" attributes on the second and third <script> elements look suspicious. The way you presented them, they will look for a file with URL "/javascript/xxxxx.js" on the host from which the page was loaded. Are you positive that this is the correct URL? Does the JavaScript console in your browser show any errors?
If "horizontalnav.js" is, in fact, in the top level directory of your web application, the proper URL would be "../horizontal.js" if you are using the standard "/faces/*" servlet maping in your WEB-INF/web.xml file (which is the default).
Craig
Craig

Similar Messages

  • Java scripting for header,footer and combine PDF as package

    Hi All,
    1.How to add header and footer using scripting.
    2.How can i combine 5 pdf files in to one pdf as PDF file package using Java Scripting.
    Thanks
    Mohamed Idris

    Hi Lenonard,
    Thanks for your reply, I am refering JavaScript for Acrobat API Reference, Version 8 document , but i could not find the right syntax for the above task.
    I am sucessfull writing script for page label but not for insertion of page number in the footer section.
    Regarding combining PDF files i could merge file and it comes as single PDF file not like assembeling pdf files as package.
    Please let me know the syntax and if i am looking at not right documentation, please let me know the document name to refer.
    Thanks again.
    Mohamed Idris

  • Reports: Javascript in Region Footer and Links in cells

    Hi all!
    I need to put hyperlinks in my APEX (4.0) Report and I read there is no direct option for it... this is how I thought to do, then...
    My reports contains two columns:
    DEVICE and HEALTH.
    The first contains a String with Devices' name, and the second a Number to be intended as percentual.
    I need Strings in DEVICE columns are also links to another APEX page where I have to generate a "dynamical" chart.
    I.E.: we can intend a Report Row where DEVICE is "000x0" and HEALTH "30".
    APEX generate HTML like this:
    <td headers="DEVICE" class="data">000x0</td><td headers="HEALTH" class="data">30</td>
    But I also need "000x0" to be a link to: "f?p=104:4:2205607043123699::::THE_DEVICE:000x0".
    As to say: the fourth page of my APEX site, where "THE_DEVICE" is an APPLICATION_ITEM and it have to contains the name of clicked Device.
    First thing I tried is to re-write pl/sql query to automatically returns html code for the link, like:
    select
    ''||DEVICE||'' as DEVICE,
    trunc(HEALTH, 2) as HEALTH
    from [...]
    But APEX convert special characters to &x; values:
    &amp;lt;a href=&amp;quot;f?p=104:4:2205607043123699::::THE_DEVICE:000&amp;quot; target=&amp;quot;_self&amp;quot;&amp;quot;&amp;gt;000&amp;lt;/a&amp;gt;
    Second thing I thought is to give an Unique ID to Report's Region ("ALARM_DEVICES_REG") and try to modify that text dynamically by adding JavaScript to Footer Region.
    I checked and found in this forum a JavaScript suggested to somebody which had similar problem to mine, then I tried to adapt to my situation.
    The fact is that my JavaScript in Footer Region doesn't seems to work at all! Neither a simple document.write("bye!"); comand!
    How possible?
    The JavaScript I tried to create could also contains errors, and it's the following:
    <script type="text/javascript">
    var y = document.getElementById('report_ALARM_DEVICES_REG')
    var x = y.getElementsByTagName('TD');
    var s;
    if (x)
    for (var i = 0; i < x.length; i++)
    s = x.item(i);
    if(s.getAttribute('headers') == 'DEVICE')
    s.data = replaceHtmlEntites(s.data);
    </script>
    I noticed the innerTable for Reports area has "report_ALARM_DEVICES_REG" id (while the outer has "ALARM_DEVICES_REG") so I used it to be more selective.
    replaceHtmlEntites is a function which should bring back special character from "&x;" values, and it's the following (I put it in "Function and Global Variable Declaration" area of Report's APEX page):
    var replaceHtmlEntites = (
    function() {
    var translate_re = "/&(nbsp|amp|quot|lt|gt);/g";
    var translate = {
    "nbsp": " ",
    "amp" : "&",
    "quot": "\"",
    "lt" : "<",
    "gt" : ">"
    return function(s) {
    return ( s.replace(translate_re, function(match, entity) {
    return translate[entity];
    Shouldn't this work? And if not, why?
    Thank you all!

    But APEX convert special characters to &x; values:If you had changed the report column type to "Standard Report column" , it would not hav escaped your HTML codes
    As for the JS code
    the function "replaceHtmlEntites" had an error at
    "lt" : "<"gt" : ">"it has to be
    {code}
    "lt" : "<",
    "gt" : ">"
    {code}
    In any case , you are doing a lot of extra work unnecessarily , firstly by not using the "column link" functionality and secondly trying to 'unescape' html code.
    Anyways,Here's a bit of code that does 'unescaping'
    {code}
    function htmlDecode(value){
    return $('<div/>').html(value).text();
    {code}
    +Note: This method is not a safe one+

  • Implementation guide for integrating OP and P6

    Hi All,
    Can you please point me to the implementation guide to integrate OP-Primavera P6R8?
    Thanks

    Partners and customers can download the implementation guide from Oracle eDelivery.
    Regards,
    Dean

  • Javascript for finding city and state base on zipcode using an oracle table

    Does anyone know if there is Javascript already written to find city and state based on zipcode?

    Eventually yes. However, you could do it yourself as well. Have a look at my demo (once
    the apex.oracle.com is back) and you can use it to create your own:
    http://htmldb.oracle.com/pls/otn/f?p=31517:9
    http://htmldb.oracle.com/pls/otn/f?p=31517:80
    What you will need is an application process to get the data queried and then
    returned into your items (region).
    Denes Kubicek

  • Javascripts for gallery images and movies do not work after Apple updates?

    The javascript that opens image links and movies no longer appears to work after runing recent Apple updates. (OSX 10.4.7 and Safari 2.0.4) The pages still work fine in Firefox under 10.4.7 and also in older versions of the OS (10.4.6) and Safari (2.0.3), but nothing happens anymore when clicking on these using Safari on my recently-updated MBP. Has anyone else experienced this?

    No problem here.

  • Javascript for Acrobat XI

    Hello everyone.
    Using the creative cloud I just upgraded from Acrobat 8 to Acronbat XI.  I cannot find the Javascript documentation for that version of Acrobat, nor can I find the SDK for that version of Acrobat.   I was able to find the Acrobat 8.0 Javascript documentation, but that's about the latest I can find.  Is that the latest version?
    TIA!
    John

    Here is the link to the documentation for Acrobat JavaScript versions 8 on.
    Here is the link to MDN JavaScript documentation and other resources. JavaScript Guide & JavaScript Reference.
    The material in the Acrobat SDK is not dynamic while the Acrobat JavaScript for version 9 and version X are both dynamic and can easily be updated by Adobe.

  • How to implement OData based BASIC Authentication using HTML, JavaScript for Mobile Apps using Apache Cordova/PhoneGap and datajs-1.1.1.js library

    Hello,
    I have an issue with OData based BASIC authentication for iOS App created using HTML, JavaScript, SAP UI5, OData and Apache Cordova/PhoneGap.
    Please check the post here http://scn.sap.com/thread/3527245
    Request you to kindly reply on the above given link.
    Thanks and Regards,
    Suraj Kumar

    Hello Prathik,
    The code which I am using for OData based BASIC Authentication, for my Mobile App is as below.
       var onSuccess = function(data) {
       alert("We are Through"); //Just to check that the OData request was sucessful
       var onError = function(err) {
       switch(err.response.statusCode) {  
       case 403 : {
       window.alert("Error Code - 403, Service unreachable ");
       break;
       case 401 : {
       window.alert("The credentials are incorrect or missing!");
       break;  
    // dataUserName and dataPassword are the two variables, in which I am storing my Username and Password, respectively.
       var connectionRequest = {
       requestUri: "ODATA SERVICE URL GOES HERE/",
       headers: { Authorization : 'Basic ' + Base64.encode(dataUsername + ":" + dataPassword) },
       method: "POST"
       OData.request( connectionRequest, onSuccess, onError);

  • Implementation guide for ESS/MSS. Urgent for ECC6 and Portal 7.

    HI ALL,
    i need documents on Implementation guide for ESS/MSS. Urgent for ECC6 and Portal 7.
    Thanks in advance.

    Hi
    Please go through the link in the below thread.
    /message/3262434#3262434 [original link is broken]
    Also try this ESS - 4.6C version to gain some knowledge:
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAESS/ESSIAC.pdf
    If this helps, pl do reward.
    Thanks
    Narasimha

  • Country implementation 40 does not exist for category IT and type 2001

    Dear Experts,
    I am getting the following error
    "Country implementation 40 does not exist for category IT and type 2001".
    when I tried to create a leave request. I think the HR Ess configuration is complete.
    Kindly, give your valuable inputs, hence I can try & resolve this issue, as I am stuck with this for quite sometime.
    Your inputs will be really valuable.
    Thanks
    Bala

    After suffering this same problem and not finding any help or information ANYWHERE, I debugged the process and found that the error is caused by a missing entry in view V_BLPTYPECOUNTRY.
    I created a new entry in the view with a blank molga and the error goes away.
    The entry I added was:
    Category = IT
    Data Typ = 2001
    Ctry Grouping = (blank)
    Class = CL_PT_BLP_IT2001
    I hope that this can help anyone having the same problem in the future.

  • Options gone for select,edit, and print under HP Smart Web banner since HP dialed in to fix crash

    The buttons are gone for selecting, editing, and printing under my HP Smart Web since HP dialed in and fixed another problem.  I have uninstalled and reinstalled the software but still no luck.  All that shows up is the "HP Smart Web Printing" banner with the X to exit; that's it, no options listed below.  My computer has completely crashed twice since I started using it 1/4/10.  The second time the person dialed in and changed the bios and a few things in msconfig but I don't see anything there that would cause the smart web printing.  HELP.  Am I missing something really silly since I am a new user of HP Smart Print?
    Thank you in advance if you can help!
    ^j^Put behind you the troubles of yesterday, today's a new day full of blessings.
    ^j^May you and your loved ones be blessed with peace, love, joy,and health now and forever.
    ^j^Put behind you the troubles of yesterday, today's a new day full of blessings.
    ^j^May you and your loved ones be blessed with peace, love, joy,and health now and forever.
    ^j^Carrie

    I am REALLY annoyed to read this post. I have spent a lot of time to try and fix my computer (which I don't have with 5 kids...not your problem I know and NOT the point). It should NOT be this hard to update and fix a product. I DON'T WANT the Bing bar...and am feeling like I am being forced to accept it to make my puter run correctly because it is supported by HP. What....kind of service is THAT???????? I hope that someone from HP....admin or whatever...reads this. I am "madder" than mad. I have had HP products for years with few problems...and all of which I could find a solution for. This is unacceptable...and I hope someone listens. I don't know if I can trust HP again....when it won't even use the browser most use without problems. Sorry to the rest of the "forum" for venting...but I can't get help...am frustrated...find this out now...and it is nothing personal.

  • Looking for Implementation Guide for Sales and Distribution

    From where can I download "Implementation Guide" for Sales and Distribution or can anybody mail me the guide?
    Thanks in advance for the answers.

    HI
    REFER BELOW LINK DOWNLOAD
    <a href="http://sapbrainsonline.com/TUTORIALS/FUNCTIONAL/SD_tutorial.html">SD (Sales and Distribution) Tutorials</a>
    <a href="http://www.esnips.com/_t_/SAP+SD">SAP SD</a>

  • Fix for javascript errors in OrganizationDesigner and other places

    A sequence of DLL/Control re-registration to clear up javascript errors in all the OrganizationDesigner popups.
    I had a lot of problems with javascript errors in Org Designer.  I was able to fix them by re-registering some IE controls and libraries.  In doing so I have cleared up all my javascript errors.  Here is the sequence - hopefully it helps others.
    open a command window and type the following:
    regsvr32 msscript.ocx
    regsvr32 dispex.dll
    regsvr32 vbscript.dll

    Hi Blaine,
    This will also fix some errors you might see when a customer clicks on a calendar date/time field and the calendar shows up blank.  Was difficult to diagnose it but found unrelated articles on the internet.  Thanks for posting here and saving many people the time.
    Thanks,
    Ant

  • Implementation Guide for 2lis_04 and 2lis_03

    Hi Experts,
    Where can I find implementation guide for 03 and 04 application.
    Thanks,
    DV

    Hi DV,
    You can find the How-to guides/implementation guides in the below links:
    http://sapbwneelam.blogspot.com/
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Regards,
    Ravi Kanth
    Edited by: Ravi kanth on Jul 14, 2009 9:39 AM

  • Tried to be clever and copied my "nav" for my "footer but it did not work

    I have copied my nav css code into my footer and changed it to #footer but seems to have gone wrong.  Also when I view it in chrome my links are not inline but if I view through design view it shows it in a straight line.  Also my origional text "copy right bristol equestrian services has moved down and not centred.  And god know why my copy and past has come out like this, hope someone can help please
    #footer
    { clear:both; margin-top:20px 0; border-top:5px #ccc solid;
    padding-bottom:5px; {background-color:#DEDEBE; margin-top:25px; }
    #footer
    ul
    { border-top:2px #C90 solid; border-bottom:3px #C90 solid;
    margin:20px 0; padding:10px 0;
    #footer ul li
    { display:inline;  }
    #footer ul li a
    { padding:0 15px; font-size:20px; }
    #footer a:link
    { color: #009;  }
    #footer a:visited
    { color: #000;  }
    #footer a:active
    { color: #000;  }
    #footer a:focus
    { color: #666;  }
    #footer a:hover   
    { color: #f90;  }
    #footer
    { clear:both; margin-top:20px 0; border-top:5px #ccc solid;
    padding-bottom:5px; {background-color:#DEDEBE; margin-top:25px; }
    #footer
    ul
    { border-top:2px #C90 solid; border-bottom:3px #C90 solid;
    margin:20px 0; padding:10px 0;
    #footer ul li
    { display:inline;  }
    #footer ul li a
    { padding:0 15px; font-size:20px; }
    #footer a:link
    { color: #009;  }
    #footer a:visited
    { color: #000;  }
    #footer a:active
    { color: #000;  }
    #footer a:focus
    { color: #666;  }
    #footer a:hover   
    { color: #f90;  }

    karenserjy1 wrote:
    I have a grey line and a black border around my footer.
    If you don't want a border and background, remove them from your CSS code.
    #footer {
    clear:both;
    margin-top:20px 0;
    border-top:5px #ccc solid;
    padding-bottom:5px;
    background-color:#DEDEBE;
    margin-top:25px; }
    Nancy O.

Maybe you are looking for

  • Problems with Presonus Firestudio and Logic

    I am having problems with compatability with my brand new Presonus Firestudio recording interface and Logic pro 8. I am new to logic but not to home recording, and i cant understand what might be the problem. When i use the firestudio with garageband

  • How do I add a second iphone to my itunes account?

    How do I add a second iphone to my itunes account?

  • Update statement for multiple records

    i have table a and table b common col in both the tables is emp_id in table b i have district_id which i want to update in table a.... column district_id for all the employees how to write update statement for this Edited by: user10873676 on Oct 17,

  • Problem with from_TZ function

    I am getting different results for the below query when DST is about to end: same on 1 day before and on Next Day after DST Ends but different on DST Ending Day. On 24th Oct 2009 12pm afternoon, when DST is still there: sdp1:/#date Sat Oct 24 12:01:0

  • Fail to deploy DWG TrueView 2013 by SCCM 2012

    I am using SCCM 2012 to deploy DWGTrueView 2013 in two ways: 1.application. For WinXP, I deploy it success when I login by administrator. it returns me an error of 1603 when I login by domain users. For Win7, it works for domain users. 2.package. I t