Announcement

Collapse
No announcement yet.

'CreateArray' is undefined JavaScript Error in Actinic Software

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    'CreateArray' is undefined JavaScript Error in Actinic Software

    Hi I was wondering if anyone can help. I have run into to some trouble with actinic. I am new to it.

    I have added a javascript menu to generate a list of links to my top level sections for my site.

    The site seems to run fine when live but in the actinic software I get a javascript pop error 'CreateArray' is undefined when ever I go to a different page or section. The site does also not offline preview correctly. Any ideas ?

    I have the menu on both brochure pages and the catalogues pages. I have searched the forum but cant find a fix.

    an example of the header from my primary template:

    <head>
    <title>NETQUOTEVAR:PAGETITLE</title>
    <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF" />
    <meta name="ACTINICTITLE" content="NETQUOTEVAR:PAGEHEADER">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <!--@act NETQUOTEVAR:HEADERMETA -->
    <!--@act NETQUOTEVAR:P3PFULLPOLICYLINK -->
    <!--@act NETQUOTEVAR:LOADFUNCTION -->
    <!--@act NETQUOTEVAR:TOPLEVELSECTIONS_RAW -->


    <link rel="stylesheet" href="actinic.css" type="text/css" />
    <script language="JavaScript" src="actiniccore.js" type="text/javascript"></script>
    <script language="JavaScript" src="actinicextras.js" type="text/javascript"></script>
    <script language="JavaScript" src="ACT_sections.js" type="text/javascript"></script>


    <actinic:variable name="JavaScriptArray" value="All Data From Top Level Sections" />
    <script language="JavaScript" src="java-menu.js" type="text/javascript"></script>
    <script language="JavaScript" src="validate-email.js" type="text/javascript"></script>

    <!-- Placeholder of cookie checking javascript code. Do not remove it! -->
    <Actinic:COOKIECHECK/>

    <!--
    The NETQUOTEVARs below can be uncommented for getting raw section lists:
    1. Top level section list
    2. Section list from current level and all children
    3. The whole section tree
    The rest covers the standalone structure members for each array - e.g. if
    you only need sName or sURL from an array.
    See the documentation for details.

    NETQUOTEVAR:CHILDSECTIONS_RAW
    NETQUOTEVAR:SECTIONTREE_RAW


    NETQUOTEVAR:SECTIONTREE_NAMES
    NETQUOTEVAR:SECTIONTREE_URLS
    NETQUOTEVAR:SECTIONTREE_IMAGES
    NETQUOTEVAR:SECTIONTREE_IMAGEWIDTHS
    NETQUOTEVAR:SECTIONTREE_IMAGEHEIGHTS
    NETQUOTEVAR:SECTIONTREE_SECTIONIDS



    NETQUOTEVAR:CHILDSECTIONS_NAMES
    NETQUOTEVAR:CHILDSECTIONS_URLS
    NETQUOTEVAR:CHILDSECTIONS_IMAGES
    NETQUOTEVAR:CHILDSECTIONS_IMAGEWIDTHS
    NETQUOTEVAR:CHILDSECTIONS_IMAGEHEIGHTS
    NETQUOTEVAR:CHILDSECTIONS_SECTIONIDS

    The section level can be accessed through:
    NETQUOTEVAR:SECTIONLEVEL
    -->

    <!--
    The NETQUOTEVARs below can be uncommented and moved to the appropriate

    location
    to save and load shopping lists
    <A HREF="NETQUOTEVAR:SAVECARTURL"><FONT FACE=ARIAL SIZE=-1><I><B>Save

    Shopping List</B></I></FONT></A>
    <A HREF="NETQUOTEVAR:RESTORECARTURL"><FONT FACE=ARIAL SIZE=-1><I><B>Load

    Shopping List</B></I></FONT></A>
    --->
    </head>

    I hope someone can shed some light on my problem

    Thanks in advance

    M Kane.

    #2
    Welcome, Michael

    You are posting in the Actinic V7 (or earlier) Forum. V7 is basically obsolete and is a crazy choice for a new site.

    The code you've posted above is a mish-mash of V7 and V8 code.

    V7 and V8/9 are completely different in the way you design layouts.

    Best start again with a clean copy of whatever version you are actually running.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi, Thanks for the reply.

      Which part is the version 8 code?

      V7 is all i have to work with

      Thanks

      M Kane.

      Comment


        #4
        Originally posted by kanema View Post
        The site seems to run fine when live but in the actinic software I get a javascript pop error 'CreateArray' is undefined when ever I go to a different page or section. The site does also not offline preview correctly.
        This statement would imply you need to copy something to the Preview folder (probably a .js file from the Javascript you added)

        Comment


          #5
          <actinic:variable name="JavaScriptArray" value="All Data From Top Level Sections" />
          this is v8 code, you need to undo this and go and get the v7 advanced userguide to help you change navigation options - i susoect you have the v8 or v9 AUG

          Comment


            #6
            Hi Guys,

            Thanks for the replies

            I will have a go at making the changes you suggest and get back.

            Thanks

            M Kane.

            Comment

            Working...
            X