Layout has a faulty condition
Posted: Mon Nov 05, 2012 6:13 pm
I am getting the following error message in my v11 Actinic.
The Glossy Accordion Menu Setup layout has a faulty condition in it.
The code is listed below and any help would be appreciated.
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="ddaccordion.js">
/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
<script type="text/javascript">
// modified www.drillpine.biz for Actinic integration
function openmenu(sid){
var links = document.getElementsByName('acctop');
var active = new Array();
for ( i=0; i<links.length; i++ ) if ( links.className.indexOf('submenuheader') > -1 ) active.push(links);
for ( i=0; i<active.length; i++ ) if ( active.getAttribute('sid') == sid) ddaccordion.expandone('submenuheader', i);
}
function expandcurrent(){
<actinic:block if="%3cactinic%3avariable%20name%3d%22AM%2dOpenToCurrent%22%20%2f%3e"><actinic:block type="ParentSectionList"><actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201" >openmenu('<actinic:variable name="SectionID" />')</actinic:block></actinic:block></actinic:block>
}
var plusimage = "<img src='accordion-plus-<actinic:variable name="AM-MenuBackground" />.gif' class='statusicon' />";
var minusimage = "<img src='accordion-minus-<actinic:variable name="AM-MenuBackground" />.gif' class='statusicon' />";
ddaccordion.init({
headerclass: "<actinic:variable name="AM-HeaderClass" />",<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Shared CSS class name of headers group</actinic:block>
contentclass: "<actinic:variable name="AM-ContentClass" />",<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Shared CSS class name of contents group</actinic:block>
revealtype: "<actinic:variable name="AM-RevealType" />",<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"</actinic:block>
mouseoverdelay: <actinic:variable name="AM-MouseOverDelay" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover</actinic:block>
collapseprev: <actinic:variable name="AM-CollapsePrev" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Collapse previous content (so only one open at any time)? true/false</actinic:block>
defaultexpanded: <actinic:variable name="AM-DefaultExpanded" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //index of content(s) open by default [index1, index2, etc] [] denotes no content</actinic:block>
onemustopen: <actinic:variable name="AM-OneMustOpen" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Specify whether at least one header should be open always (so never all headers closed)</actinic:block>
animatedefault: <actinic:variable name="AM-AnimateDefault" />, //Should contents open by default be animated into view?</actinic:block>
persiststate: <actinic:variable name="AM-PersistState" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //persist state of opened contents within browser session?</actinic:block>
toggleclass: <actinic:variable name="AM-ToggleClass" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]</actinic:block>
togglehtml: <actinic:variable name="AM-ToggleHtml" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)</actinic:block>
animatespeed: "<actinic:variable name="AM-AnimateSpeed" />",<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"</actinic:block>
oninit:<actinic:variable name="AM-OnInit" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //custom code to run when headers have initalized</actinic:block>
onopenclose:<actinic:variable name="AM-OnOpenClose" /><actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //custom code to run whenever a header is opened or closed</actinic:block>
});
</script>
<link href="accordion-glossy.css" rel="stylesheet" type="text/css">
The Glossy Accordion Menu Setup layout has a faulty condition in it.
The code is listed below and any help would be appreciated.
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="ddaccordion.js">
/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
<script type="text/javascript">
// modified www.drillpine.biz for Actinic integration
function openmenu(sid){
var links = document.getElementsByName('acctop');
var active = new Array();
for ( i=0; i<links.length; i++ ) if ( links.className.indexOf('submenuheader') > -1 ) active.push(links);
for ( i=0; i<active.length; i++ ) if ( active.getAttribute('sid') == sid) ddaccordion.expandone('submenuheader', i);
}
function expandcurrent(){
<actinic:block if="%3cactinic%3avariable%20name%3d%22AM%2dOpenToCurrent%22%20%2f%3e"><actinic:block type="ParentSectionList"><actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201" >openmenu('<actinic:variable name="SectionID" />')</actinic:block></actinic:block></actinic:block>
}
var plusimage = "<img src='accordion-plus-<actinic:variable name="AM-MenuBackground" />.gif' class='statusicon' />";
var minusimage = "<img src='accordion-minus-<actinic:variable name="AM-MenuBackground" />.gif' class='statusicon' />";
ddaccordion.init({
headerclass: "<actinic:variable name="AM-HeaderClass" />",<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Shared CSS class name of headers group</actinic:block>
contentclass: "<actinic:variable name="AM-ContentClass" />",<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Shared CSS class name of contents group</actinic:block>
revealtype: "<actinic:variable name="AM-RevealType" />",<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"</actinic:block>
mouseoverdelay: <actinic:variable name="AM-MouseOverDelay" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover</actinic:block>
collapseprev: <actinic:variable name="AM-CollapsePrev" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Collapse previous content (so only one open at any time)? true/false</actinic:block>
defaultexpanded: <actinic:variable name="AM-DefaultExpanded" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //index of content(s) open by default [index1, index2, etc] [] denotes no content</actinic:block>
onemustopen: <actinic:variable name="AM-OneMustOpen" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Specify whether at least one header should be open always (so never all headers closed)</actinic:block>
animatedefault: <actinic:variable name="AM-AnimateDefault" />, //Should contents open by default be animated into view?</actinic:block>
persiststate: <actinic:variable name="AM-PersistState" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //persist state of opened contents within browser session?</actinic:block>
toggleclass: <actinic:variable name="AM-ToggleClass" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]</actinic:block>
togglehtml: <actinic:variable name="AM-ToggleHtml" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)</actinic:block>
animatespeed: "<actinic:variable name="AM-AnimateSpeed" />",<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"</actinic:block>
oninit:<actinic:variable name="AM-OnInit" />,<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //custom code to run when headers have initalized</actinic:block>
onopenclose:<actinic:variable name="AM-OnOpenClose" /><actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" > //custom code to run whenever a header is opened or closed</actinic:block>
});
</script>
<link href="accordion-glossy.css" rel="stylesheet" type="text/css">