Home >Web Front-end >HTML Tutorial >Questions about frameset loading order_html/css_WEB-ITnose

Questions about frameset loading order_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:54:221645browse

The code is as follows:

   <frameset id="thisFrame" cols="13%,*" rows="*" border="2px"  bordercolor="#CFB53B" frameborder="1" framespacing="2"   >		    <frame id="fLeft" name="LeftFrame" src="LeftTree.aspx" scrolling="auto" frameBorder=0   />		    <frame id="fRigth" name="MainFrame" src="OfficeIndex.aspx" scrolling="no" frameBorder=0 />	</frameset>


The interface is divided into two columns. The left is the tree structure menu, and the right is the main functional area. In the right interface, there is a ToolBar, which is The corresponding operation permissions must be assigned according to the running permissions on the left, that is, you should run "fLeft" first, go to the corresponding permission parameters, and then run fRight. However, debugging found that the loading order of the browser is not necessarily certain, and sometimes Load fLeft first, sometimes load fRight first. Masters, please tell me, is there any way to set it to load from fLeft first? .


Reply to discussion (solution)

Set the right src to empty
After loading js on the left, set the right src

Set the right src to empty
After loading the js on the left, set the right src


How to write the js to set the right src? ? There is no fRight item in this.parent.item. Did I write it wrong? ?

Write in Page_Load of LeftTree.aspx:
Response.Write("cb07111ca5ae5ef678bbf0d01d0237c0this.parent.item(1).src='OfficeIndex.aspx';3fa3f474cbb4b6d948eebecb1be5dde4");
The result of running is that the right area is blank. .

parent.document.getElementById('fRigth').src="******************.html"

Sure enough, it works, thank you . .

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn