Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML after iframe neglected
    primarykey
    data
    text
    <p>I'm currently stuck on a problem that looks a lot like <a href="https://stackoverflow.com/questions/923328/line-after-iframe-is-not-visible">this</a> one at first hand, however the solution of that problem did not work in my case.</p> <p>I have a tagx in which I have an iframe in which I'm setting the src attribute using jQuery to a certain value depending on the hyperlink clicked on. The tag is embedded by a jspx file mostly consisting of a springform. Everything works nicely except that code written directly below the iframe is not shown by the browser (tested in Firefox and Chrome, not sure for other browsers). Even code written in the jspx directly below the tag (which embeds the tag with the iframe) is not shown. </p> <p>containerCreator.jspx:</p> <pre><code>&lt;div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:roo="urn:jsptagdir:/WEB-INF/tags" xmlns:olo_elem="urn:jsptagdir:/WEB-INF/tags/olo/admin/element" xmlns:spring="http://www.springframework.org/tags" id="elementen_base" version="2.0"&gt; &lt;spring:url value="/admin/element/saveContainerElementBean" var="save"/&gt; &lt;form:form action="${save}" method="POST" modelAttribute="containerElementBean"&gt; &lt;input type="submit" value="sla op"/&gt; &lt;olo_elem:containerCreator path="${path}" containerId="${id}"/&gt; &lt;p&gt;I'm not visible&lt;/p&gt; &lt;/form:form&gt; &lt;/div&gt; </code></pre> <p>containerCreator.tagx:</p> <pre><code>&lt;jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:form="http://www.springframework.org/tags/form" xmlns:olo_elem="urn:jsptagdir:/WEB-INF/tags/olo/admin/element" xmlns:spring="http://www.springframework.org/tags" version="2.0"&gt; &lt;jsp:directive.attribute name="containerId" type="java.lang.Long" required="false" description="id van de container die wordt bevat, null indien nog geen container is gebonden" /&gt; &lt;jsp:directive.attribute name="path" type="java.lang.String" required="false" description="pad waarin het id van een nieuw containerelement wordt gezet"/&gt; &lt;spring:url value="/admin/element/editContainer/${containerId}" var="existingLink" /&gt; &lt;spring:url value="/admin/element/newContainer" var="newLink" /&gt; &lt;script type="text/javascript"&gt; function openExisting(){ $('#editor').attr('src', '${existingLink}'); $("#editor").show(); } function openNew(){ $('#editor').attr('src', '${newLink}'); $("#editor").show(); } $(document).ready(function(){ $("#editor").hide(); }); &lt;/script&gt; &lt;c:choose&gt; &lt;c:when test="${not empty id}"&gt; &lt;a onclick="javascript: openExisting()"&gt;Bewerk ContainerElement&lt;/a&gt; &lt;/c:when&gt; &lt;c:otherwise&gt; &lt;c:choose&gt; &lt;c:when test="${not empty path}"&gt; &lt;input type="hidden" name="${path}" id="path" value=""/&gt; &lt;a onclick="javascript: openNew()"&gt;Maak ContainerElement&lt;/a&gt; &lt;/c:when&gt; &lt;c:otherwise&gt; Error: Geef containerId of tag op! &lt;/c:otherwise&gt; &lt;/c:choose&gt; &lt;/c:otherwise&gt; &lt;/c:choose&gt; &lt;iframe id="editor" style='width: 800px; height: 800px' name="iframeId" frameborder="0"&gt; &lt;/iframe&gt; &lt;p&gt;I'm not visible&lt;/p&gt; &lt;/jsp:root&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload