Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to make html elements created by javascript to appear at the top of page?
    primarykey
    data
    text
    <p>I have written a JavaScript file which is included in the head of the HTML code. This JavaScript code creates some new <code>div</code> and <code>iframe</code> on the webpage. Javascript creates these division after 10 minutes . this notification is forsession time out. </p> <p>But I already have a division which loads oracle forms inside it. I want to keep this forms <code>div</code> in the bottom of page.</p> <p>Is it possible to move this forms <code>div</code> downwards automatically when the new <code>div</code> appears (which are created by the JavaScript code). Nothing should overlap.</p> <p>I want to keep <code>div</code> (created by JavaScript) on the top, because that contains a notification . </p> <p>Below is the code I have written :</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Kshitij Jain&lt;/title&gt; &lt;script src="../common/jquery-1.6.2.min.js"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function(){ $("#menu").html('&lt;object data="http://209.34.231.132/forms/frmservlet?form=ClmRepymt&amp;amp;config=common"&gt;'); }); &lt;/script&gt; &lt;script type="text/javascript"&gt; var logoutPath = '&lt;%=ServerSupportUtil.getURL(response,ServerSupportUtil.getApplURL()+"/servlets/MenuServlet?dirc=logout")%&gt;'; var sessionTimeout = '&lt;%=session.getMaxInactiveInterval()%&gt;'; var refreshSessionUrl = '&lt;%=ServerSupportUtil.getApplURL()%&gt;/common/refreshsession.jsp'; var countDownSeconds = '&lt;%=CommonSupportUtil.getSessionTimeoutCountDownSec()%&gt;'; &lt;/script&gt; &lt;script type="text/javascript" src="&lt;%=ServerSupportUtil.getApplURL() %&gt;/common/net.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;%=ServerSupportUtil.getApplURL() %&gt;/common/AjaxSessionTimer.js"&gt;&lt;/script&gt; &lt;style&gt; object { width:825px; height:625px; z-index: -100; } &lt;/style&gt; &lt;/head&gt; &lt;div id="menu"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Here, the <code>div</code> having <code>id='menu'</code> contains oracle forms. Notification should appear above this <code>div</code>. </p> <p>I cannot change my JavaScript code as it is generic for whole web application. All changes should be inside this JSP. </p>
    singulars
    1. This table or related slice is empty.
    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.
    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