<div dir="ltr">Dear OpenCMS Admin,<div><br></div><div>I created a custom module that contains javascript. Following advice from a recent post on this mailing list, I included the ${cms.enableReload} command so that the script result refreshes on every edit.</div><div><br></div><div>However, now when I drag the component over my template, the whole page refreshes and then the component disappears along with any other component added prior to adding that component.</div><div><br></div><div>My template is a custom template with navigation.</div><div><br></div><div>Here is the template in entirety:-</div><div><br></div><div><div><%@page buffer="none" session="false" trimDirectiveWhitespaces="true" %></div><div><%@ taglib prefix="cms" uri="<a href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</a>" %></div><div><%@ taglib prefix="fmt" uri="<a href="http://java.sun.com/jsp/jstl/fmt">http://java.sun.com/jsp/jstl/fmt</a>" %></div><div><%@ taglib prefix="fn" uri="<a href="http://java.sun.com/jsp/jstl/functions">http://java.sun.com/jsp/jstl/functions</a>" %></div><div><%@ taglib prefix="c" uri="<a href="http://java.sun.com/jsp/jstl/core">http://java.sun.com/jsp/jstl/core</a>" %></div><div><html></div><div><head><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span><cms:headincludes type="css" /></div><div>  <span class="gmail-Apple-tab-span" style="white-space:pre">     </span><cms:headincludes type="javascript" /> </div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span><cms:enable-ade /></div><div></head></div><div><body></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span><cms:include file="%(link.weak:/system/modules/com.elixirtech.opencms/elements/main-nav.jsp:169a79fe-ff14-11e6-ba85-a75a6890411c)"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span><cms:container name="elx-main-content" type="element" width="500" maxElements="8" detailview="true"/></div><div></body></div><div></html><br><br>The include is:-<br><br><div><%@page taglibs="c,cms" %> </div><div><c:set var="navStartLevel">1</c:set></div><div><cms:navigation type="treeForFolder" startLevel="${navStartLevel}" endLevel="4" var="nav"/></div><div><ul class="nav-side list-group sidebar-nav-v1"><span class="gmail-Apple-tab-span" style="white-space:pre">           </span></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span><c:forEach items="${nav.items}" var="elem"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">          </span><li class='nav-side-level-${elem.navTreeLevel - navStartLevel} </div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>           list-group-item </div><div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>           ${!elem.navigationLevel && nav.isActive[elem.resourceName]?"active":""}'></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span><a href="<cms:link>${elem.resourceName}</cms:link>">${elem.navText}</a></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span></li></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">    </span></c:forEach></div><div></ul></div></div></div><div><br></div><div>as gotten directly from the tutorial.<br><br>Could someone please explain why the vanishing act occurs?<br><br><br>Regards,</div><div>Clement</div></div>