家庭内部的框架 [英] frameset inside Home

查看:45
本文介绍了家庭内部的框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好

我正在使用frameset(2008)

我的应用程序中有3个frameset

我有

hi good morning

i am using frameset(2008)

i having 3 framesetin my application

one fram i having

<a href="xxxx.aspx">Home</a>


的一个帧 如果我单击此按钮,我们需要在页面内的第二帧(Top.aspx)中进行更改,我需要更改方式



if i click this one we need to change in second frame(Top.aspx) inside page i need to change how


<frameset rows="77,*" cols="*" frameborder="NO" border="0" framespacing="0">
     <frame src="Header.aspx" name="MainHeader" scrolling="no" noresize>
     <frameset rows="*" cols="160,*" framespacing="1" frameborder="yes" border="1">
         <frame src="Menu.aspx" name="MenuPad" scrolling="no" noresize>
         <frame src="Top.aspx" name="MainBody" scrolling="auto">
     </frameset>
     <frameset rows="100,*" cols="*" frameborder="NO" border="0" framespacing="0">
         <frame src="Bottom1.aspx" name="MainLeft" scrolling="no" noresize>
     </frameset>
 </frameset>

推荐答案

首先不建议使用Frameset.其次,通过框架获得一页要通过另一页面来进行精简确实会带来安全隐患,而且还会增加大量的复杂性,因为每个框架都有其自己的生命周期和DOM.我能想到的唯一方法是在母版页的首页(不是masterPage)的头部中指定一个对象,并使页面通过此对象属性和轮询事件进行通信.

在w3c中:
Firstly Frameset''s are not recommended. Secondly getting one page to comminicate via another via frames does pose secuirty conserns and also adds a massive layer of complexity because each frame has its own lifecycle and DOM. The only way I can think of is specifying an object in the head of the master page (not masterPage) and have the pages communicate via this object property and polling events.

From w3c: http://www.w3.org/TR/html4/present/frames.html[^]

Sharing data among frames

Authors may share data among several frames by including this data via an OBJECT element. Authors should include the OBJECT element in the HEAD element of a frameset document and name it with the id attribute. Any document that is the contents of a frame in the frameset may refer to this identifier.

The following example illustrates how a script might refer to an OBJECT element defined for an entire frameset:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"

   "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>This is a frameset with OBJECT in the HEAD</TITLE>
<!-- This OBJECT is not rendered! -->
<OBJECT id="myobject" data="data.bar"></OBJECT>
</HEAD>
<FRAMESET>
    <FRAME src="bianca.html" name="bianca">
</FRAMESET>
</HTML>

<!-- In bianca.html -->
<HTML>
<HEAD>
<TITLE>Bianca's page</TITLE>
</HEAD>
<BODY>


这篇关于家庭内部的框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆