CSS issues....get Javascript error on click event

Trying to finish up this navbar. Got it where my navigation works pretty much great. However, the code I expected to work when I fire a click event on the logo (represnted currently by a gray circle) causes a 'Javascript error in event handler! Event Type = element' error instead. Not sure why. I know I had an issue with one of my button references (spelling issue) but beyond that, everything seems to be in order.
This is the code I'm using. The first five lines work right. The second series does not.
sym.getSymbol("btnVision").$("back").css({opacity: 0})
sym.getSymbol("btnIndustires").$("back").css({opacity: 1})
sym.getSymbol("btnResp").$("back").css({opacity: 1})
sym.getSymbol("btnCommunity").$("back").css({opacity: 1})
sym.getSymbol("btnDiscovery").$("back").css({opacity: 1})
var stage = sym.getComposition().getStage()
stage.$("navVision").css({top: 65});
stage.$("navIndustries").css({top: 65});
stage.$("navResp").css({top: 65});
stage.$("navCommunity").css({top: 65});
stage.$("navDiscovery").css({top: 65});
I should mentioned I tried sym.getSymbol for the bottom entries but that simply produced the same exact error. Sign.
Anyone know what might be causing this? It doesn't seem to make sense to me. Here's the files.
https://www.dropbox.com/s/xo90u6hvj65ix78/nav.zip

Hi ladobeugm,
The error message is rather cryptic, but this occurs when trying to access something not defined, as you already experienced with your misspelling.
You should use Firebug to localize the error via step by step execution. There is a Scripts tab. In its menu, select <youProject>Actions.js. Then, define a breakpoint by clicking in the line number of statement var stage= etc. In the Spies area, you can look for the offending statement by monitoring variable values.
Gil

Similar Messages

  • Getting javascript error in jsf portlet

    Hi,
    I wrote a jsf page with command links calling an action in ManagedBean. Its works fine if run as jsf page. But when I associate the jsf page with a portlet and run the page, I am getting javascript error when clicked on the command links.
    Please help me to resolve this problem.
    The jsf page
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%@ taglib uri="http://www.bea.com/servers/portal/groupspace/tags/activemenus" prefix="activemenus" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://bea.com/faces/adapter/tags-naming" prefix="netuix" %>
    <html>
    <head></head>
         <body>
    <f:view>
         <netuix:namingContainer id="facesContent">
              <h:form>
    <f:verbatim>
         <table border="0" width="100%">
              <tr>
                   <td>
                        <h:outputLabel value="Notifications" for="heading"/>
                   </td>
                   <td>
                        (<h:outputText value="#{notificationsBean.notificationsSize}" escape="true"/>)
                   </td>
                   <td>
                             <h:commandLink action="#{notificationsBean.showInWorkList}" immediate="true">
                                  <h:outputText value="Show in Worklist"/>
                             </h:commandLink>
                   </td>
                   <td>
                        <h:outputText value="hai"/>
                   </td>
              </tr>
         </table>
    </f:verbatim>     
              <div style="overflow: auto; width: 100%; height: 200px">
              <h:dataTable value="#{notificationsBean.userNotifs.notificationsList}" var="notification">
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="caseNB"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value="####"/>
                                  <h:outputText value="Case ID"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.caseNB}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}" immediate="true">
                                  <h:outputText value="From"/>
                                  <f:param name="column" value="senderNM"/>
                                  <f:param name="pattern" value=""/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.senderNM}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="priorityCD"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value=""/>
                                  <h:outputText value="Priority"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.priorityCD}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="subjectTX"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value=""/>
                                  <h:outputText value="Subject"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.subjectTX}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="createDT"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value="dd-MM-yyyy"/>
                                  <h:outputText value="Created(ET)"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.createDT}"/>
                   </h:column>
              </h:dataTable>
              </div>
                   </h:form>
    </netuix:namingContainer>
    </f:view>
    </body>
    </html>
    The Managed Bean:
    public class NotificationsManagedBean {
         private UserNotifications userNotifs=new UserNotifications();
         private int notificationsSize;
         private String column;
         private String sortDirection = "asc";
         private String pattern;
         public UserNotifications getUserNotifs() {
              getUserNotificationsList();
              return userNotifs;
         public void setUserNotifs(UserNotifications userNotifs) {
              this.userNotifs = userNotifs;
         public int getNotificationsSize() {
              getUserNotificationsList();
              return notificationsSize;
         public void setNotificationsSize(int notificationsSize) {
              this.notificationsSize = notificationsSize;
         public String getColumn() {
              return column;
         public void setColumn(String column) {
              this.column = column;
         public String getSortDirection() {
              return sortDirection;
         public void setSortDirection(String sortDirection) {
              if(sortDirection != null && sortDirection.trim().length()!=0)
                   this.sortDirection = sortDirection;
         public String getPattern() {
              return pattern;
         public void setPattern(String pattern) {
              this.pattern = pattern;
         public String showInWorkList() {
              System.err.println("test");
              return "success1";
              //TODO Auto-generated method stub
         public String sort(){
              sort(column, sortDirection);
              return "success";
         @SuppressWarnings("unchecked")
         private void getUserNotificationsList()
              ArrayList<Notification> notificationsList = new ArrayList<Notification>();
              for(int i=0;i<20;i++)
                   Notification notif = new Notification();
                   notif.setCaseNB("122"+i);
                   notif.setCreateDT("12-12-2002");
                   notif.setSenderNM("testing1"+(i%3));
                   System.out.println(notif.getSenderNM());
                   notif.setSubjectTX("testing2"+(i%4));
                   System.out.println(notif.getSubjectTX());
                   notif.setPriorityCD("High");
                   notificationsList.add(notif);
    userNotifs.setNotificationsList(notificationsList);
              if(userNotifs.getNotificationsList()!=null)
                   this.setNotificationsSize(userNotifs.getNotificationsList().size());
    * <p>Return the <code>FacesContext</code> instance for the
    * current request.
    protected FacesContext context() {
    return (FacesContext.getCurrentInstance());
    protected void sort(final String column, final String direction) {
              java.util.Comparator comparator = new SortComparator(userNotifs.getNotificationsList(),column,direction,pattern);
              java.util.Collections.sort(userNotifs.getNotificationsList(), comparator);     
              if(direction.equalsIgnoreCase("asc"))
                   setSortDirection("desc");
              else
                   setSortDirection("asc");
    }

    Too less relevant information and too much irrelevant code.
    First of all, which JS error exactly are you getting? You as developer should know better that you shouldn't ignore errors. They contain helpful information about the cause of the problem and thus also how to solve it. Where exactly does the error come from? (view the generated HTML source). Which JSF implementation and version exactly are you using? Which webbrowser exactly are you using? Does it work in/with other/newer versions?

  • Aperture help not working - getting JavaScript error message

    My Aperture 3 has been having a lot of strange issues lately, most, but not all of which have been cleared up by holding down command + option while starting up and going through all three of the choices there.
    One problem that remains is the inability to open the Help files. I keep getting the following message:
    “The Help Library requires JavaScript.
    If JavaScript is not enabled, you will not
    be able to view all the content.”
    Help works in all other applications, like Pages and Final Cut Pro. I don’t get JavaScript error messages in any other applications.
    I’ve already done an erase and restore from a Time Machine backup, and an archive and install. I reinstalled Aperture, although not by using the Terminal command suggested in the kbase article # HT3805.
    If I go the Terminal command route, will I lose all my projects, albums, and editing? What about Mobile Me galleries?
    I have a guest user on the computer, and when I log on to that user and open Aperture, the Help Library works fine. So, I know the problem is in my user account somewhere, but I don’t know how to address it. Any ideas?

    Welcome to the forums.
    The fact that you have access to java in another user suggests that it is a local setting or preference.
    In the applications folder/utilities there is an application Java Preferences, try resetting this and seeing if it works.
    If not, try deleting the java preferences file in your users folder
    systemHD/Users/user/Library/Preferences/com.apple.java.JavaPreferences.plist
    relaunch the app Java Preferences which creates a new preferences file for you, then try Aperture again.
    Let us know how this goes.
    Tony

  • Getting Javascript error on Production Server

    Hi,
    I am facing unusual problem as my one jsp file containing javascript is working fine on testing server.I put same code on production server ,here I am getting javascript alert for not saving my data.Putting some part of my JSP file for ur reference--
    Javascript--
    function sysValidate(item){
                        var itemValue=item;
    // alert(itemValue);
    /* if((itemValue == '')||(itemValue == null))
    return false;
                        var today = new Date();
                        var sysDay = today.getDate();
                        var sysMonth = today.getMonth()+1;
                        var sysYear = today.getFullYear();
                        var fieldArray = itemValue.split("/");
                        var itemDay = parseInt(fieldArray[0]);
                        var itemMonth = parseInt(fieldArray[1]);
                        var itemYear = parseInt(fieldArray[2]);
    if(itemYear > sysYear)
    return false;
                        else{
                             if(itemYear < sysYear)
                                  return true;
                             else{
                                  if(itemMonth > sysMonth)
                                       return false;
                                  else{
                                       if(itemMonth < sysMonth)
                                            return true;
                                       else{
    if(itemDay >=sysDay)
    return false;
                                            else
    return true;
    if(sysValidate(exdate))
    alert("Save denied as delivery date prior to sysdate");
    bool=false;
    return bool;
    As when I am trying to save record in which my PO delivery date is greater than my Sysdate.I am getting javascript alert- "Save denied as delivery date prior to sysdate".
    Plz,help.
    Vaish...

    956066 wrote:
    1)I installed webcenter Management and Production instance and both working fineI hope you meant WebCenter Sites.
    2)On community Management Instance successfully showing the UI but after clicked on any of functions getting javascript error.Ensure that Community Patch1 is applied. Can be checked as status page (should show smth like "Oracle WebCenter Sites 11gR1 | Community 223 revision 3560" )
    3)On Community Production instance not able to validate the CAS.How "not able"? And what CAS: Sites Management CAS, Sites Production CAS or Visitor CAS?? Provide please details.
    Did you mean status page on Production Community instance shows errors related to CAS? What does status page on Management Community instance shows in this case? The same?
    Are there any errors in logs?
    Did you register Community instances in the SystemSatellite table?
    Edited by: 964768 on May 16, 2013 8:30 AM

  • Getting javascript error in portal admin

    Dear all,
    When i tried to add a content item in the CMS of Weblogic Portal 8.1, an "unterminated string constant" javascript error is displayed and i can't add the content. This happens only when the content item is of a type that contains one or more calendar type property.
    Did anybody also encounter that and have some idea how to solve it?
    Thank you!!
    David

    Hi Bharat
    refer to this for the Log file
    Physical path of log files in EP server
    Portal Runtime Error - Where is the log file?
    For javscript problem refer  to
    Javascript error when loading Portal Content
    Portal Content Permissions
    Getting javascript error while logging in EP
    Thanx
    Pankaj

  • SEARCH hyperlink getting javascript errors

    The SEARCH hyperlink on the www.oracle.com/technology/index.html page doesn't work. It gets javascript errors and does nothing. I am using IE version 6.0.2800

    We are aware of the problem and working to resolve it. Hitting "Enter" after typing in your keyword will have the correct result however.
    Cheers, OTN

  • Getting javascript error while selecting the Recipients in OBIEE delivers.

    Hi All,
    I am working on OBIEE from quite a long time, but recently I came across a error while selecting the Recipients in Recipients list of OBIEE delivers.
    Making it more comprehensive, when I try to create an ibot , after entering all necessary information when I select Recipients in Recipients list and click on ok. I get a JavaScript error "null" is null or an object. The surprising thing is when i select cancel it works as ok.
    Any help will be highly appreciated
    Thanks,
    Jyoti
    Message was edited by:
    user616430

    I think you dont have a field named /BIC/XXXXXX in the table from which you are trying to fetch the data. Chech the spelling of the field name and table name.

  • Javascript Error when clicking on any link in a google search

    Every time !!!
    I get this:
    Error: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.evaluate]
    Now I know nothing of Javascript, but I know when to get annoyed:-)

    Google is always busy updating things, and Firefox can sometimes get files out of sync. When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?

  • Why do I get an error when clicking on "view in browser" in my newsletter?

    Hello. I am trying to get the URL for my email campaigns so I can show some of them on my webpage. When I tried to get the URL by clicking on the email I sended in the tag that says "view in browser":
    I get the following URL:
    http://www.coscatl.com/CampaignProcess.aspx?A=View&VID=0&KID=116388
    With the following error:
    ERROR: This feature is not available in preview mode.
    Any ideas? Suggestions?
    Thanks!

    Hi Steve. Thank you for your time.
    You are right, the link does work after the campaign has been delivered.
    By the way I am big fan of BC Gurus.
    Take care and gracias again!

  • I keep getting an error when clicking a link in email if firefox is not already open

    If firefox in not open when I click a link in an email I get an error message. If firefox is already open it opens a new tab and works okay. After getting the error message it still opens firefox and goes to the link.

    The actual error was "There was a problem sending the command to the program". This was the message inside the error box. The error box also shows a message "https://support.mozilla.com/questions/887286#answer-2...". I cant read anymore and can't copy any of the links or message.

  • I am getting JavaScript Errors when I attempt to use the Multiscreen Preview function in DW CS 5.

    When I attepmpt to use the Multiscreen Preview button in DW CS 5 I get the following error:
    "While executing onShow in MultiscreenPreview.htm, the following JavaScript error(s) occured:
    In file "Multiscreen Preview":
    onShow is not defined"
    This leads to either an unusable multiscreen preview box or another series of similar JavaScript errors.
    Is there a solution to this problem and if so what is it?
    Thank you for your time.

    Follow this KB article:
    http://kb2.adobe.com/cps/405/kb405604.html
    Start with 12 & 4 and then go through the rest if needed.

  • Getting Java error While click on Test model for New configuration.

    From ” Configurator Administrator responsibility” we use the below link and getting Java Error:
    Log in -> Configurator Administrator responsibility -> Configurator Developer -> Simple Search -> Item Name: r100s -> Click Edit -> Click Test Model -> select Start New Configuration -> Click Next -> select Model UI -> Click Finish -> get java.lang.NullPointerException.
    If any body have encountered the same error , Please let me know the solution.
    Regards,

    Below is the Error:
    [Dec 1, 2009 9:48:51 AM GMT+00:00]:1259660931381:Thread[Thread-127,10,main]:1467:85913090:essapdu31z1.emrsn.com:10.236.93.46:27619:27620:EXCEPTION:[cz.servic
    e.ConfiguratorServiceLocal.From processMessage()]:[null_3a1685d_2 # 31] null
    java.lang.NullPointerException
    at oracle.apps.cz.service.ConfiguratorService.fetchModeldata(ConfiguratorService.java:1708)
    at oracle.apps.cz.service.ConfiguratorService.processMessage(ConfiguratorService.java:447)
    at oracle.apps.cz.service.ConfiguratorServiceLocal.onMessage(ConfiguratorServiceLocal.java:18)
    at oracle.apps.cz.runtime.PageController.postServiceMessage(PageController.java:535)
    at oracle.apps.cz.runtime.PageController.fetchModelData(PageController.java:707)
    at oracle.apps.cz.runtime.oa.server.CZApplicationModuleImpl.submitDataRequest(CZApplicationModuleImpl.java:954)
    at oracle.apps.cz.runtime.oa.webui.AbstractMainPageController.getModelData(AbstractMainPageController.java:547)
    at oracle.apps.cz.runtime.oa.webui.AbstractMainPageController.loadPageStructure(AbstractMainPageController.java:2313)
    at oracle.apps.cz.runtime.oa.webui.MainPageController.processRequest(MainPageController.java:65)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    Regards

  • I keep getting 'unknown error' after clicking 'install app' when trying to download Mavericks from the App store.

    Trying to install Mavericks from the App store on my 2011 11" Macbook air, (wihch has more than 15GB free space).  After clicking 'Install App', and entering the Apple ID password, I get 'unkonwn error'.

    You can't use Safari to download iPad apps. Only use iTunes/App Store.
     Cheers, Tom

  • Still getting Javascript error with new version of UIX

    I'm facing some problem after changing my UIX framework version (2.2.3030829.1626).
    Currently I'm using UIX version (2.2.3030829.1626) . Paging with table is not working with new frame work .
    It is giving me javacript error "object doesn't support property or method" when clicking 'Next' .
    It's working fine with old version.
    We had used proper cabo directory. These files are in sync with the version of the runtime
    Here is our finding
    I found a error in _updateFormActions() function from MarlinCoreb2.js file.
    In this function it is giving error at
    if(a8!=a6)
    a7.action=a6 line (line # 1841,1842). If I comment out this two lines page is
    working properly without any javascript error.
    This problem is a bit tricky....
    Because it seems to be a problem with the UIX framework that only occurs on some versions of the Internet Explorer. On some version (IE 6.0.2600.0000) it works fine
    and it also works on the Mozilla Firefox browser.
    Can any one advice on the same?
    Thanks in advance
    Anindya

    I answered this question on a different thread.
    Do NOT post the same question multiple times. If you require more complete or prompt assistance than you receive on these forums, contact Oracle Support.
    -brian

  • Getting javascript error while accessing URL iview

    Hi All,
    I have created a URL iview. There is a search functionality in this iview when we search any text then it is giving javascript error (Permission Denied).
    When we use the search functionality of that URL directly in the browser then it is working fine.
    Please Help.

    The URL that is being invoked may not like running inside an IFRAME. Not all URLs work correctly as iViews
    See what happens if you tell the iView to launch in a new window...

Maybe you are looking for

  • Creation of Text File on Client Machine

    I am using Oracle 11i EBS and I have a requirement to create a text file on the client's machine. The name of the file is suppose to be on a particular format (DDMMYY.TXT). It is an urgent requirement from our client and we need to go live in 3 days.

  • Will there be a Photoshop or Illustrator plug-in for Adobe Collage?

    Downloaded and had a quick play with Adobe Collage last night. It's pretty cool in principle for creating quick mood boards for ideas, but there is a real lack of options in terms of downloading them (only lets you download in native format, which is

  • Posting idocs from R/3 to xi

    dear all, i want to do one scenario of posting INVOIC idocs from R/3 to XI. I have gone thru some of the blogs posted in SDN but didn't find any step by step guide for doing it. Can anybody send me the link or sme document for the above said scenario

  • E-commerce with Internet Explorer 7.0

    Hi All, Is SAP E-Commerce application compatable with internet explorer 7.0. As making changes in UI (style sheet ) there is lot of change in IE6 to IE7. Please advice. Thanks, Devender

  • TV and the Menu Bar

    I've got a PowerMac 5500/250, running OS 8.6, with an Apple TV card. I can run Apple Video Player, watch TV in my computer room, etc. Here's the question - how do I get rid of the menubar while in fullscreen mode? It keeps flickering, trying to disap