Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In your <code>&lt;form/&gt;</code> Tag use the attribute <code>target="_parent"</code> to break up the current frame set. Then in your response you can send a new frameset so that all three frames are reloaded.</p> <p><strong>Update to clarify it a little bit:</strong></p> <p><code>form</code> tag without <code>target</code> attribute: The user submits the form. The server processes the form data and sends a response, i.e. a welcome page. The browser shows this response page in the same frame.</p> <p><code>form</code> tag with <code>target="_parent"</code>: The user submits the form. Ther server processes the form data and sends a response. The difference here is, that the browser replaces the whole frameset with the server respone. This gives you the chance to update the other frames. </p> <p>But in this case you have to change the server response. If it is still the welcome page then the browser will show only that page and no other frames. The server response should be a frameset similar to the original frameset. But you can replace the three frame URLs with different URLs:</p> <p>Original frameset:</p> <pre><code>&lt;frameset&gt; &lt;frame src="login.jsp" name="frame1" /&gt; &lt;frame src="contentA.jsp" name="frame2" /&gt; &lt;frame src="contentB.jsp" name="frame3" /&gt; &lt;/frameset&gt; </code></pre> <p>As a response to the user login you send a new frameset</p> <pre><code>&lt;frameset&gt; &lt;frame src="welcome.jsp" name="frame1" /&gt; &lt;frame src="contentC.jsp" name="frame2" /&gt; &lt;frame src="contentD.jsp" name="frame3" /&gt; &lt;/frameset&gt; </code></pre>
 

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