Javascript Version in AE?

Hi, I'm curious what version of Javascript backs scripting in After Effects?  Is there a way of checking?  Anyway to upgrade or change the version of JS?  I'm just curious how much I might be able to play with the core javascript implementation and customize things in various ways.  Not sure even if it's something where source files are available...
Any info or help in the right direction is greatly appreciated.
Thanks in advance!
Calvin

from the first page of the scripting guide:
"After Effects scripts use the Adobe ExtendScript language, which is an extended form of JavaScript used by  several Adobe applications, including Photoshop, Illustrator, and InDesign. ExtendScript implements the JavaScript language according to the ECMA-262 specification. The After Effects scripting engine supports the  3rd Edition of the ECMA-262 Standard, including its notational and lexical conventions, types, objects, expressions, and statements. ExtendScript also implements the E4X ECMA-357 specification, which defines access  to data in XML format."
FWIW, we are currently investigating updating the engine to a more recent one.

Similar Messages

  • How to check a Javascript version in OPPM

    Is it possible to check the Javascript version in OPPM and able to upgrade the Javacript to a newer version?

    OPPM uses jscript.net and I am pretty sure it is JScript 8.0 which was last version that Microsoft released.
    You should be able to add a FE_IncludeFile via psGlobalsConfig.exe to add any missing functions that a newer implementation of JavaScript has.
    V/r,
    Gene

  • Min Javascript version w/ HRMS 11.0.3, specifically OIT 11.0.3

    Hello all,
    My client seems to have several problems running OIT on Macintosh machines with Mac OS 9 and Internet Explorer 5. They seem to point to javascript related problems. These problems do not occur when using Netscape browser on most Windows platforms.
    Does anyone know the minimum Javascript version required to support the funtionality provided by Oracle Internet Time 11.0.3?
    Thanks.
    - Tushar
    null

    Sorry, I'm in the 10% that did not get the word about the IT change to the FTP Site for Security Reasons.
    ftp://ftp.intergraph.com/adobe_1102_1103_files.zip
    [ login details removed by forum moderator - this is a public website, do not post confidential information ]

  • Acrobat Javascript and older versions of Reader

    Hi,
    I have created a basic Acrobat Javascript for my PDFs which reside at the document level.
    What i want to know is, how backwards compatible is Acrobat Javascript? Will it work in older versions of Adobe Reader?
    I have not managed to find much on this so any info would be appreciated.  I just need to make sure the script runs to all my users regardless of what version of reader they are using.
    Is this possible?
    Thanks.

    In addition to George's statement, you might also check the JavaScript version a specific Acrobat version supports; there have been a few useful changes in Core JavaScript 1.7 and 1.8 (in the Array object), which may prevent your script running properly in Acrobat 7 (and older).
    On the other hand, with the exception of "security" annoyances, old code (developed in Acrobat 4 or so) usually still works in Acrobat 10. This means, that you can program for a specific Acrobat version, and it should be fine with several newer versions as well. If not sure, check the documentation (mentioned by George) and try it out.
    HTH
    Max Wyss.

  • Lauching JNLP through Javascript gives viewRoot null exception

    Hi All,
    I have a requirement where I am creating jnlp file dynamically at runtime and launch it with Java web start.
    I used the java script to do this.
    here is the sample code:here is the jsff page code:
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                    xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jsp/jstl/core"
                    xmlns:cht="/oracle/hsgbu/trc/cohortcommon/ui/component">              
          <script type="text/javascript;version=1.8" xmlns="http://www.w3.org/1999/xhtml">
              function callappRequest(port, dataUrl, genomeID, mergeFlag, locusString, trackName) {
              alert('first');
                 alert('2nd'+port +dataUrl);            
              appRequest(port, dataUrl, genomeID, mergeFlag, locusString, trackName,jnlpLocation);
              alert('3rd');
        </script> 
       <af:resource type="javascript" source="/javascript/westart.js"/>
    <af:outputText value="File to launch IGV" id="ot4"/>
                            <af:spacer width="10" height="10" id="s24"/>
                        <af:commandButton text="View the file In IGV browser" id="cb3"
                                          action="#{pageFlowScope.managedBeanBean.openIGVBrwoser}"/>
                    </af:panelGroupLayout>
    </ui:composition>
    java code to call the javaScript for launching the jnlp file:
    public String openIGVBrwoser() {
    try {
    File dataUrl = new File("D://user//test//test1.vcf");
    FacesContext fctx = FacesContext.getCurrentInstance();
    ExtendedRenderKitService erks = null;
    erks =org.apache.myfaces.trinidad.util.Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
                      FacesContext fctx = FacesContext.getCurrentInstance();
                      ExtendedRenderKitService erks = null;
                      erks =
                      org.apache.myfaces.trinidad.util.Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
                      String  genomeID = "";
                      String mergeFlag = "";
                      String locusString = "";
                      String trackName = "";
                      String port = "60151";
                      URL dataUrl = vcfFile.toURL();
                      System.out.println("------dataUrl------"+dataUrl.getPath());
                      //System.out.println("----fileurl---------"+jnlpLocation);
                      erks.addScript(fctx,"callappRequest("+port+",'" + dataUrl.getPath() + "','"+genomeID+"','"+mergeFlag+"','"+locusString+"','"+trackName+"');");
                      System.out.println("------- end ------------"+vcfFile);
            } catch (IOException ioe) {
                      // TODO: Add catch code
                      ioe.printStackTrace();
    when I run the page by inserting it in jspx . on pageloading I am getting the following error
    StyleContextImpl> <isDisableStyleCompression> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    <SkinImpl> <_isDisableContentCompressionParameterTrue> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    <StateManagerImpl> <restoreView> Could not find saved view state for token sm6fdj1z7
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
    java.lang.NullPointerException
        at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:478)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:487)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <RichExceptionHandler> <_reportFailureForMissingViewRoot> ADF_FACES-30179:For more information, please see the server's error log for an entry beginning with: The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.
    java.lang.NullPointerException
        at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:478)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:487)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <XmlHttpServletResponse> <_logException>
    javax.servlet.ServletException: ADF_FACES-60101:HTTP Error Status Code: 500."
        at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse._logException(XmlHttpServletResponse.java:140)
        at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse.sendError(XmlHttpServletResponse.java:106)
        at com.sun.faces.context.ExternalContextImpl.responseSendError(ExternalContextImpl.java:835)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._reportFailureForMissingViewRoot(RichExceptionHandler.java:305)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleMissingViewRoot(RichExceptionHandler.java:287)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._invokeRichExceptionHandling(RichExceptionHandler.java:243)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleUnexpectedException(RichExceptionHandler.java:178)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleException(RichExceptionHandler.java:128)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleNextEvent(RichExceptionHandler.java:113)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler.handle(RichExceptionHandler.java:98)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:210)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <StateManagerImpl> <restoreView> Could not find saved view state for token sm6fdj1z7
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
    java.lang.NullPointerException
        at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:478)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:487)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <RichExceptionHandler> <_reportFailureForMissingViewRoot> ADF_FACES-30179:For more information, please see the server's error log for an entry beginning with: The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.
    java.lang.NullPointerException
        at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:478)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:487)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <XmlHttpServletResponse> <_logException>
    javax.servlet.ServletException: ADF_FACES-60101:HTTP Error Status Code: 500."
        at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse._logException(XmlHttpServletResponse.java:140)
        at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse.sendError(XmlHttpServletResponse.java:106)
        at com.sun.faces.context.ExternalContextImpl.responseSendError(ExternalContextImpl.java:835)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._reportFailureForMissingViewRoot(RichExceptionHandler.java:305)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleMissingViewRoot(RichExceptionHandler.java:287)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._invokeRichExceptionHandling(RichExceptionHandler.java:243)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleUnexpectedException(RichExceptionHandler.java:178)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleException(RichExceptionHandler.java:128)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleNextEvent(RichExceptionHandler.java:113)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler.handle(RichExceptionHandler.java:98)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:210)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <Jan 9, 2014 11:08:41 PM IST> <Critical> <Health> <BEA-310003> <Free memory in the server is 4,851,040 bytes. There is danger of OutOfMemoryError>
    <MetadataServiceImpl$Bootstrap> <add> ADFc: /META-INF/adfc-config.xml:
    <MetadataServiceImpl$Bootstrap> <add> ADFc: Duplicate managed bean definition for 'loginPageBean' detected.
    <StyleContextImpl> <isDisableStyleCompression> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    <SkinImpl> <_isDisableContentCompressionParameterTrue> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    <StyleContextImpl> <isDisableStyleCompression> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    <SkinImpl> <_isDisableContentCompressionParameterTrue> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    and here is the JavaScript:
    * Javascript library to communication with java webstart application
    // globals
    var SCRIPT_ELEMENT_ID = "igv";
    var timeoutVar; // used to set/unset timeout handlers
    var sessionURL; // the session (or data) url
    var genome; // the genome parameter
    var locus;  // the locus parameter
    var name;   // the name parameter
    var merge;
    * Function to determine webstart version - taken from sun site
    function webstartVersionCheck(versionString) {
        // Mozilla may not recognize new plugins without this refresh
        navigator.plugins.refresh(true);
        // First, determine if Web Start is available
        if (navigator.mimeTypes['application/x-java-jnlp-file']) {
            // Next, check for appropriate version family
            for (var i = 0; i < navigator.mimeTypes.length; ++i) {
                var pluginType = navigator.mimeTypes[i].type;
                if (pluginType == "application/x-java-applet;version=" + versionString) {
                    return true;
        return true;
    * Handler function to launch IGV via java web start.  This handler is scheduled in the appRequest() function, and
    * is canceled by the callBack() function called in the response to the "localhost" request.  If callBack() is not
    * invoked we conclude IGV is not running and launch it via Java WebStart.
    function timeoutHandler() {
        // construct webstart url
        var hostname = window.location.hostname;
        var port = window.location.port;
        if (port) {
            hostname += (":" + port);
       //  note: context_path is set in stylesAndScripts.jsp
         var webstart_url = "http://www.broadinstitute.org/igv/projects/current/igv.php";
        if (sessionURL) {
            webstart_url += "?sessionURL=" + sessionURL;
            if (genome) {
                webstart_url += "&genome=" + genome;
            if (locus) {
                webstart_url += "&locus=" + locus;
            if (name) {
                webstart_url += "&name=" + name;
            if (merge) {
                webstart_url += "&merge=" + merge;
         // window.open(webstart_url,"needdownload");
        // determine if webstart is available - code taken from sun site
        var userAgent = navigator.userAgent.toLowerCase();
        // user is running windows
        if (userAgent.indexOf("msie") != -1 && userAgent.indexOf("win") != -1) {
            document.write("<OBJECT " +
                "codeBase=http://java.sun.com/update/1.5.0/jinstall-1_5_0_05-windows-i586.cab " +
                "classid=clsid:5852F5ED-8BF4-11D4-A245-0080C6F74284 height=0 width=0>");
            document.write("<PARAM name=app VALUE=" + webstart_url + ">");
            document.write("<PARAM NAME=back VALUE=true>");
            // alternate html for browsers which cannot instantiate the object
            document.write("<A href=\"http://java.sun.com/j2se/1.5.0/download.html\">Download Java WebStart</A>");
            document.write("</OBJECT>");
         //user is not running windows
        else if (webstartVersionCheck("1.6")) {
            window.location = webstart_url;
        // user does not have jre installed or lacks appropriate version - direct them to sun download site
        else {
            window.open("http://jdl.sun.com/webapps/getjava/BrowserRedirect?locale=en&host=java.com",
                "needdownload");
    * This function is called by IGV in the response to the GET request to load the data.  It cancels the JNLP load.
    function callBack() {
        clearTimeout(timeoutVar);
    * Called to disable a link to the webstart.
    function disableLink(linkID) {
        var link = document.getElementById(linkID);
        if (link) {
            link.onclick = function() {
                return false;
            link.style.cursor = "default";
            link.style.color = "#000000";
    * This function is called from a link or button to load data into IGV.  First,  an attempt is made to load the
    * supplied data into a running IGV.  If this is not successful, as detected by a failure to cancel the timeoutHandler,
    * IGV is launched by JNLP.
    * The first 2 arguments are required.  Remaining arguments are optional but must appear in the prescribed order.
    * @param port -- the IGV port, typically 60151
    * @param dataUrl -- an http or ftp url to the data.
    * @param genomeID -- the genomeID,  e.g. hg18
    * @param mergeFlag -- flag to indicate if data should be merged with current IGV session, or should start a new session
    * @param locusString -- an IGV locus string, e.g. chr1:100,000-200,000  or EGFR.  See IGV doc for full details
    * @param trackName -- name for the track resulting from dataURL.  This only works for "single-track" formats, e.g. wig.
    function appRequest(port, dataUrl, genomeID, mergeFlag, locusString, trackName) {
        // be good and remove the previous cytoscape script element
        // although, based on debugging, i'm not sure this really does anything
        var oldScript = document.getElementById(SCRIPT_ELEMENT_ID);
        if (oldScript) {
            oldScript.parentNode.removeChild(oldScript);
        alert('in app request...'+port+dataUrl);
       var localURL = "http://127.0.0.1:" + port + "/load?callback=callBack();";
        sessionURL = dataUrl;
        genome = genomeID;
        locus = locusString;
        merge = mergeFlag;
        name = trackName;
        if(dataUrl != null) {
            localURL += "&file=" + dataUrl;
        if (genomeID != null) {
            localURL += "&genome=" + genomeID;
        if (locusString != null) {
            localURL += "&locus=" + locusString;
        if (mergeFlag != null) {
            localURL += "&merge=" + mergeFlag;
        if (trackName != null) {
            localURL += "&name=" + trackName;
         alert('local url'+localURL);
        // create new script
        var newScript = document.createElement("script");
        newScript.id = SCRIPT_ELEMENT_ID;
        newScript.setAttribute("type", "text/javascript");
        newScript.setAttribute("src", localURL);
        // add new script to document (head section)
        var head = document.getElementsByTagName("head")[0];
        head.appendChild(newScript);
         //disable link
        // we do this because some browsers
         //will not fetch data if the url has been fetched in the past
        disableLink("1");
        // set timeout - handler for when IGV is not running
        timeoutVar = setTimeout("timeoutHandler()");
    I am not getting why its getting veiwRoot null. even though the script still didn't get call.
    Please let me know where I'm making mistake.
    your suggestions are welcome.
    Thanks
    Ashwini

    Hi,
    the problem typically is when a navigation references a view that does not exist in JSF. I suggest to start from the JSPX page and then add more and more content to it until the error shows. This helps you to narrow the problem. I did not read the whole JavaScript you posted, but you should make sure it performs a proper redirect replacing the whole JSPX page and that the redirect does not include /faces/ in the path
    Frank

  • How do I get the android version of Firefox to show my sync key OR export my bookmarks?

    This is so aggravating, I have spent hours and hours now trying to get my bookmarks out of my Android device, to no avail.
    There are two addons out there, none of which work with the current version (18) of FF.
    So I took the about:synckey plugin (https://addons.mozilla.org/en-us/firefox/addon/aboutsynckey/) and updated the install.rdf with the android GUID and bumped the em:MaxVersion. Now it installed! WOHO!
    But didn't work. :-(
    Googling I managed to find a post in http://support.mozilla.org/en-US/questions/941765?page=2 where cor-el points out that the code is wrong. So I make the fix: The call to get the key should supposedly be 'Weave.Utils.hyphenatePassphrase(Weave.Identity.syncKey)'.
    I reinstall and try again, but no dice. I try to insert an alert. No dice. The Javascript doesn't seem to fire.
    I try on the desktop, and it works! Well, I don't have a key, but the alert fires as least.
    Does Android require signed packages for JS to run, or what am I missing here?
    The fact that there is no way to get the sync key out of FF for android NOR export bookmarks is, to use a strong word, retarded. Googling around there are many many threads from people who have, like me, lost their recovery key. It's aggravating because the data is there. I have my bookmarks on the device. I know the key is in there or it couldn't decode them. There's just no way to get at it because everything is locked down.
    The JS looks like this (oh great, no preview here. How nice):
    <script type="application/javascript;version=1.8"><![CDATA[
    window.addEventListener("load", function onLoad() {
    window.removeEventListener("load", onLoad, false);
    Components.utils.import("resource://services-sync/main.js");
    let synckey = Weave.Utils.hyphenatePassphrase(Weave.Identity.syncKey);
    document.getElementById("synckey").textContent = synckey;
    }, false);
    ]]></script>
    One thread suggested 'jailbreaking' and then somehow exporting the sql-lite(?) database containing the key, extracting it from there. I'm not doing that. This isn't supposed to be hard, this is supposed to be three clicks and you're done.
    For the love of all that is holy, someone add Export Bookmarks to the Android version so we can get on with our lives.

    This is because the directions you are seeing are out of date. They applied to Firefox < 10.
    The only way to get data out of the Firefox for Android profile is to use https://addons.mozilla.org/en-US/android/addon/copy-profile/
    This data is not directly importable into Firefox desktop. It would require some inspection of the SQLite databases to accomplish what you want to do.

  • IE 11 using Javascript 1.3

    I have a web project that has to work on multiple browsers. When I use the following link to test the javascript versions this is what I get:
    Link: http://jsfiddle.net/Ac6CT/
    For IE 11 I get 1.3 (my code breaks)
    For IE 9 on Vista I get 1.7 (my code works)
    For Chrome on Windows 8.1 (same machine as IE 11 above) I get 1.7 (my code works)
    For FireFox on Windows 8.1 (same machine as IE 11 and Chrome) I get 1.5 (my code works)
    So the question is why is IE 11 only running javascript 1.3?  Can I set this to a higher version?
    The code that is breaking is str[0] which is undefined in 1.3 but works in all of the later versions.
    I would like to change the javascript version instead of my code if at all possible.
    Thanks,
    Susan G. Conger
    BFC Associates

    Hi,
    version testing is not recommended. use feature testing instead... the version and language attributes of the script tag are deprecated.
    eg.
    if(window.addBehavior)// userAgent supports legacy HTC behaviors.
    Post questions about html, css and scripting to the IE Web Development forum. Include with your question a link to your website.
    to debug web pages press f12 to display the developer tool, then refresh the page to show any suppressed error messages. Include these messages with your post.
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or
    to raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us 
    Rob^_^

  • Create TOC javascript using paragraph style

    Hi,
    i want to create javascript for TOC in new indesign document or book. but i want to use input style for paragraph styleHi,

    "It didn't work for me" doesn't work for me. Always, always, always, state why it doesn't work for you.
    Did you try to use it, but could not get it to work?
    Or, do you need to do something special that the built-in function does not do?
    It should not be extremely hard to make a javascript version that does (roughly) the same. You could try something like this:
    For every paragraph style you want to include (most likely all sorts of headings),
    Search for all occurrences, and store the text, its page number, and (important!) its story offset in an array.
    You need the text because that's what will appear in the TOC.
    You need the page number because, well, that's what the TOC is for :-)
    Most important: you need the story offset so you can reconstitute the original order of the headings. You can only search for one level of heading at a time, so without sorting, you would get "Heading 1 -- Heading 1 -- Heading 1 -- Heading 2 -- Heading 2 -- Heading 2" (etc.)
    When you have gathered all of the information for your entire book, sort on story offset. (I forgot, it's for a Book, right? You need to store a document id as well, so you can sort throughout multiple documents.) (See Ed.)
    Then write out every text in the right order, followed by its page number.
    The IndexMatic script that Marc points out should already contains lots of the logic described here -- esp. searching and storing page numbers.
    [Ed.] Thinking about it, a Book (multiple documents) should *not* cause any problems, and you don't need to know in which document some text was found. Simply sort the paragraphs on their page number; only when these are the same for more than one paragraph, sort just these on their Story Offset. Logically, there should not be two headers with the same page number in two different documents.

  • Javascript on iPhone only partially works

    Anyone having any trouble with Javascript on the iPhone? I have a site that I have to use for work. It will not work on my iPhone. When I disable javascript I get the not javascript version of the pages (which do not have all the functions of the normal page). It works perfectly on the iMac and Safari. Any suggestions?

    It is correct not all java script and apple work on iPhone Safari.
    Just open www.virtualemotion.com
    Select a Java virtual tour (any), it won't open it.
    Everything works on your "normal" iMac Safari and so also PC.
    To the same also QTVR are not supported by iPhone Safari.
    ... hoping that a sw update will add some more web functionalities...I imagine and hope to be only a question of priorities...MVP (minimum viable product... to make the June release date.

  • Create TOC javascript for indesign book

    Hi friends,
    i am new to indesign javascript. i want to create a javascript for TOC indesign book using paragrph style
    could anyone help me. i am strugling long time.

    "It didn't work for me" doesn't work for me. Always, always, always, state why it doesn't work for you.
    Did you try to use it, but could not get it to work?
    Or, do you need to do something special that the built-in function does not do?
    It should not be extremely hard to make a javascript version that does (roughly) the same. You could try something like this:
    For every paragraph style you want to include (most likely all sorts of headings),
    Search for all occurrences, and store the text, its page number, and (important!) its story offset in an array.
    You need the text because that's what will appear in the TOC.
    You need the page number because, well, that's what the TOC is for :-)
    Most important: you need the story offset so you can reconstitute the original order of the headings. You can only search for one level of heading at a time, so without sorting, you would get "Heading 1 -- Heading 1 -- Heading 1 -- Heading 2 -- Heading 2 -- Heading 2" (etc.)
    When you have gathered all of the information for your entire book, sort on story offset. (I forgot, it's for a Book, right? You need to store a document id as well, so you can sort throughout multiple documents.) (See Ed.)
    Then write out every text in the right order, followed by its page number.
    The IndexMatic script that Marc points out should already contains lots of the logic described here -- esp. searching and storing page numbers.
    [Ed.] Thinking about it, a Book (multiple documents) should *not* cause any problems, and you don't need to know in which document some text was found. Simply sort the paragraphs on their page number; only when these are the same for more than one paragraph, sort just these on their Story Offset. Logically, there should not be two headers with the same page number in two different documents.

  • CS6 findchangebuylist with javascript error

    Running Mac OS 10.6.8
    iMac 2.93 GHz Intel Core i7
    4GB 1333 MHz DDR3
    Indesign CS6 8.0.1
    I have created an new page with nothing on it except a text box. I imported paragraph and text styles for a master page templatre created for a catalog I am creating. I created the new page to try and eliminate any issues that may have been cause by opending an document created in CS5.5. I am using the "recordfindchange" script latest version for cs3-cs5 written by Martin Fisher to export the findchange result of my test. Here is an image of the findchange quire:
    I get a java script error when I run the script I created buy copying the "findchangebylist: javascript and txt file, adding the name _SimpleTest to the file names and replaceing Line number 116 in the javascript with this:
    var myFindChangeFile = myFindFile("/FindChangeSupport/findChangeStrings_SimpleTest")
    Here is the error I get:
    I know nothing about javascript. so I am dead in the water. so can someone please help. Is there any issues with CS6 and the findchangebylist script? does "recordfindchange" no longer work with CS6? Could it be a javascript version problem (I just updated to the latest version)?

    Sorry I should have included the entire javascript so you could see exactly whats there. I am calling the correct file and I am not including the .txt extension.
    I'll include the findchange.txt file after the javascript.
    Here it is Javascript:
    //FindChangeByList.jsx
    //An InDesign CS6 JavaScript
    @@@BUILDINFO@@@ "FindChangeByList.jsx" 3.0.0 15 December 2009
    //Loads a series of tab-delimited strings from a text file, then performs a series
    //of find/change operations based on the strings read from the file.
    //The data file is tab-delimited, with carriage returns separating records.
    //The format of each record in the file is:
    //findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
    //Where:
    //<tab> is a tab character
    //findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
    //findProperties is a properties record (as text) of the find preferences.
    //changeProperties is a properties record (as text) of the change preferences.
    //findChangeOptions is a properties record (as text) of the find/change options.
    //description is a description of the find/change operation
    //Very simple example:
    //text    {findWhat:"--"}    {changeTo:"^_"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all double dashes and replace with an em dash.
    //More complex example:
    //text    {findWhat:"^9^9.^9^9"}    {appliedCharacterStyle:"price"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    Find $10.00 to $99.99 and apply the character style "price".
    //All InDesign search metacharacters are allowed in the "findWhat" and "changeTo" properties for findTextPreferences and changeTextPreferences.
    //If you enter backslashes in the findWhat property of the findGrepPreferences object, they must be "escaped"
    //as shown in the example below:
    //{findWhat:"\\s+"}
    //For more on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    //or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
    main();
    function main(){
        var myObject;
        //Make certain that user interaction (display of dialogs, etc.) is turned on.
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
        if(app.documents.length > 0){
            if(app.selection.length > 0){
                switch(app.selection[0].constructor.name){
                    case "InsertionPoint":
                    case "Character":
                    case "Word":
                    case "TextStyleRange":
                    case "Line":
                    case "Paragraph":
                    case "TextColumn":
                    case "Text":
                    case "Cell":
                    case "Column":
                    case "Row":
                    case "Table":
                        myDisplayDialog();
                        break;
                    default:
                        //Something was selected, but it wasn't a text object, so search the document.
                        myFindChangeByList(app.documents.item(0));
            else{
                //Nothing was selected, so simply search the document.
                myFindChangeByList(app.documents.item(0));
        else{
            alert("No documents are open. Please open a document and try again.");
    function myDisplayDialog(){
        var myObject;
        var myDialog = app.dialogs.add({name:"FindChangeByList"});
        with(myDialog.dialogColumns.add()){
            with(dialogRows.add()){
                with(dialogColumns.add()){
                    staticTexts.add({staticLabel:"Search Range:"});
                var myRangeButtons = radiobuttonGroups.add();
                with(myRangeButtons){
                    radiobuttonControls.add({staticLabel:"Document", checkedState:true});
                    radiobuttonControls.add({staticLabel:"Selected Story"});
                    if(app.selection[0].contents != ""){
                        radiobuttonControls.add({staticLabel:"Selection", checkedState:true});
        var myResult = myDialog.show();
        if(myResult == true){
            switch(myRangeButtons.selectedButton){
                case 0:
                    myObject = app.documents.item(0);
                    break;
                case 1:
                    myObject = app.selection[0].parentStory;
                    break;
                case 2:
                    myObject = app.selection[0];
                    break;
            myDialog.destroy();
            myFindChangeByList(myObject);
        else{
            myDialog.destroy();
    function myFindChangeByList(myObject){
        var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, myResult;
        var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit, myStory;
        var myStartCharacter, myEndCharacter;
        var myFindChangeFile = myFindFile("/FindChangeSupport/findChangeStrings_SimpleTest")
        if(myFindChangeFile != null){
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                //Loop through the find/change operations.
                do{
                    myLine = myFindChangeFile.readln();
                    //Ignore comment lines and blank lines.
                    if((myLine.substring(0,4)=="text")||(myLine.substring(0,4)=="grep")||(myLine.substring(0, 5)=="glyph")){
                        myFindChangeArray = myLine.split("\t");
                        //The first field in the line is the findType string.
                        myFindType = myFindChangeArray[0];
                        //The second field in the line is the FindPreferences string.
                        myFindPreferences = myFindChangeArray[1];
                        //The second field in the line is the ChangePreferences string.
                        myChangePreferences = myFindChangeArray[2];
                        //The fourth field is the range--used only by text find/change.
                        myFindChangeOptions = myFindChangeArray[3];
                        switch(myFindType){
                            case "text":
                                myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
                                break;
                            case "grep":
                                myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
                                break;
                            case "glyph":
                                myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
                                break;
                } while(myFindChangeFile.eof == false);
                myFindChangeFile.close();
    function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
        //Reset the find/change preferences before each search.
        app.changeTextPreferences = NothingEnum.nothing;
        app.findTextPreferences = NothingEnum.nothing;
        var myString = "app.findTextPreferences.properties = "+ myFindPreferences + ";";
        myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";
        myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";
        app.doScript(myString, ScriptLanguage.javascript);
        myFoundItems = myObject.changeText();
        //Reset the find/change preferences after each search.
        app.changeTextPreferences = NothingEnum.nothing;
        app.findTextPreferences = NothingEnum.nothing;
    function myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
        //Reset the find/change grep preferences before each search.
        app.changeGrepPreferences = NothingEnum.nothing;
        app.findGrepPreferences = NothingEnum.nothing;
        var myString = "app.findGrepPreferences.properties = "+ myFindPreferences + ";";
        myString += "app.changeGrepPreferences.properties = " + myChangePreferences + ";";
        myString += "app.findChangeGrepOptions.properties = " + myFindChangeOptions + ";";
        app.doScript(myString, ScriptLanguage.javascript);
        var myFoundItems = myObject.changeGrep();
        //Reset the find/change grep preferences after each search.
        app.changeGrepPreferences = NothingEnum.nothing;
        app.findGrepPreferences = NothingEnum.nothing;
    function myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
        //Reset the find/change glyph preferences before each search.
        app.changeGlyphPreferences = NothingEnum.nothing;
        app.findGlyphPreferences = NothingEnum.nothing;
        var myString = "app.findGlyphPreferences.properties = "+ myFindPreferences + ";";
        myString += "app.changeGlyphPreferences.properties = " + myChangePreferences + ";";
        myString += "app.findChangeGlyphOptions.properties = " + myFindChangeOptions + ";";
        app.doScript(myString, ScriptLanguage.javascript);
        var myFoundItems = myObject.changeGlyph();
        //Reset the find/change glyph preferences after each search.
        app.changeGlyphPreferences = NothingEnum.nothing;
        app.findGlyphPreferences = NothingEnum.nothing;
    function myFindFile(myFilePath){
        var myScriptFile = myGetScriptPath();
        var myScriptFile = File(myScriptFile);
        var myScriptFolder = myScriptFile.path;
        myFilePath = myScriptFolder + myFilePath;
        if(File(myFilePath).exists == false){
            //Display a dialog.
            myFilePath = File.openDialog("Choose the file containing your find/change list");
        return myFilePath;
    function myGetScriptPath(){
        try{
            myFile = app.activeScript;
        catch(myError){
            myFile = myError.fileName;
        return myFile;
    Here  is the File "findChangeStrings_SimpleTest.txt"
    //FindChangeList.txt
    //A support file for the InDesign CS4 JavaScript FindChangeByList.jsx
    //This data file is tab-delimited, with carriage returns separating records.
    //The format of each record in the file is:
    //findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
    //Where:
    //<tab> is a tab character
    //findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
    //findProperties is a properties record (as text) of the find preferences.
    //changeProperties is a properties record (as text) of the change preferences.
    //findChangeOptions is a properties record (as text) of the find/change options.
    //description is a description of the find/change operation
    //Very simple example:
    //text    {findWhat:"--"}    {changeTo:"^_"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all double dashes and replace with an em dash.
    //More complex example:
    //text    {findWhat:"^9^9.^9^9"}    {appliedCharacterStyle:"price"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    Find $10.00 to $99.99 and apply the character style "price".
    //All InDesign search metacharacters are allowed in the "findWhat" and "changeTo" properties for findTextPreferences and changeTextPreferences.
    //If you enter backslashes in the findWhat property of the findGrepPreferences object, they must be "escaped"
    //as shown in the example below:
    //{findWhat:"\\s+"}
    grep    {findWhat:"  +"}    {changeTo:" "}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all double spaces and replace with single spaces.
    grep    {findWhat:"\r "}    {changeTo:"\r"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all returns followed by a space And replace with single returns.
    grep    {findWhat:" \r"}    {changeTo:"\r"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all returns followed by a space and replace with single returns.
    grep    {findWhat:"\t\t+"}    {changeTo:"\t"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all double tab characters and replace with single tab characters.
    grep    {findWhat:"\r\t"}    {changeTo:"\r"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all returns followed by a tab character and replace with single returns.
    grep    {findWhat:"\t\r"}    {changeTo:"\r"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all returns followed by a tab character and replace with single returns.
    grep    {findWhat:"\r\r+"}    {changeTo:"\r"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all double returns and replace with single returns.
    text    {findWhat:" - "}    {changeTo:"^="}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all space-dash-space and replace with an en dash.
    text    {findWhat:"--"}    {changeTo:"^_"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all dash-dash and replace with an em dash.
    //The test starts here
    grep    {, findWhat:"\\r\\r.+[:].+\\r"}    {, appliedParagraphStyle:"01-Header"}    {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true}    //Comment

  • 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.

  • When I start Firefox I get this error: [JavaScript Application] Exc in ev handl: TypeError: this.oRoot.enable is not a function. How can I fix this?

    This problem started suddenly, and I need to close the error message window so Firefox Browser can start.
    I have the latest JavaScript version.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Javascript Error with Adobe's own script

    My company gave me a FindChangeList.txt to use for formatting books. It is in the FindChangeSupport folder in both the JavaScript and VBS folders. When I try to run the Javascript version of FindChangeByList that shipped with InDesign CS4, I get the following error:
    Error Number 25
    Error String: Expected : :
    File: ..FindChangeByList.jsx
    Line 172
    Source: app.do.Script[myString, ScriptLanguage.javascript]
    Running the VBS version of FindChangeByList does nothing at all.
    I don't know anything about Javascript, so could someone please tell me what to do.
    I am running Windows XP and InDesign CS4.

    Hi mattaca,
    I didn't find a problem, so I haven't found a solution. Questions to start with:
    Which version of InDesign are you using?
    Which scripting language are you using?
    Have you edited the FindChangeByList.txt file?
    Thanks,
    Ole

  • FlashVars/Javascript Integration -- Neither Working

    A client asked to have a short intro swf on his homepage, at
    the end of which is the main navigation for the site. He also wants
    to be able to jump back to the homepage and SKIP the whole intro,
    just go straight to the navigation in the swf. I tried this first
    using flashvars and then using javascript/flash integration, and
    both are giving me problems. Nothing so far has worked on firefox
    mac, only sometimes on ff pc, never in IE and usually in Safari.
    Can anyone tell me what I'm doing wrong??
    here's the flashvars
    version
    here's the javascript
    version
    in the first frame of the swf, i have the following
    code:

    Yes, beer hurts. Obviously my, 'dont write too much because
    people don't like to read' policy was wrong.
    What I want to do is have an intro in the swf that plays when
    you load the page normally, but can also be
    automatically skipped, if say coming from one of the pages
    deeper in the site. I'm sure there's a simpler way to do this, and
    im all ears, but what i tried to do is have a variable inside the
    swf that is basically a boolean for whether or not to skip the
    intro, that is what the
    if(loc == 'nav'){
    gotoAndStop('links');
    is for. In other words, if the variable loc has the value
    'nav' then skip the intro and go right to the navigation menu.
    Now, in order to set the variable i tried two methods, the
    first was to use flashvars/url query (as in
    src="intro.swf?loc=nav"). that can be seen here:
    flashvars/query
    the second attempt was using js/flash integration, which can
    be seen here:
    js/flash integration
    the thing is neither of them are consistently working. hence
    the 'nothing so far has worked' business....does that
    clarify?

Maybe you are looking for

  • The system encountered error before Itunes could be configured

    Hi, i can't seem to get Itunes 8 to run. Each time after the installer is launched, it has an error message that says "The system encountered error before Itunes could be configured. Your systems has not been modified. To try this application at a la

  • PO & Scheduling Agreement Schedule Lines

    Please help me out with this questions below:- 1. What is the use of Scheduling Agreement Schedule Lines in PO. 2. What is the use of  Reservation/dependent requirements in PO. 3.When does EKET & RSEB table update at the time of Po crration. 4.Where

  • Need to get an external hard drive for Time Machine

    I bought a smartdisk hard drive firewire 400 (160gb), any know anything about them? I have a 250gb internal hard drive...is this a good one, or should i exchange for something different? TIA

  • Upload the excel file in oracle db through oracle forms

    Hi all, I want to upload the excel file in oracle db through oracle forms...I am new to oracle forms . I have searched a lot but not getting exact solution Is there anyone who will help me out with this ..... Any help will be appriciated

  • How use CAVS in Oracle SOA 10g ? Any guide / help ?

    Hello, I need to implement CAVS for testing. Any best material that help me to Test my Service. Thanks