I have an html document using frames. This is the code:
<frameset cols="10%,*" border="0">
<frame src="left_page.html">
<frameset rows="50%,50%" border="0">
</frameset>
</frameset>
Then in left_page.html, this is my code:
<form action="http:www.google.com">
<input type="submit" value="GotoGoogle" />
</form>
The problem is, when I click the button, it loads google.com in the left frame, not the entire screen. How can I get the web page to display on the entire screen and not just the left side frame?
You need to specify the target frame (_top is the full page)
<form action="http:www.google.com" target="_top">
<input type="submit" value="GotoGoogle" />
</form>
Related
I have a frameset, where the right frame have buttons which on click redirects to defined html pages.
Similarly i want to achieve the same simultaneously on click of the radio button 2 on the right frame, my corresponding image should be loaded on the left frame.
Have tried something like this:
<html>
<frameset cols="25%,75% scrolling=" no ">
<frame name="left " src="help_q1_image.html " scrolling=no />
<frame name="center " src="help_q1.html " scrolling=no />
</frameset>
</html>
AS of now only the image defined in help_q1_image.html loads.
When i click on button/link 2, its corresponding image should load.
Will this work?
<html>
<body>
<center>
<frameset rows="50%,50%">
<frame src="images.html">
<frameset>
<form action="abc.html">
<input type="submit" name="abc page" value="abc page">
</form>
</frameset>
</frameset>
</center>
</body>
</html>
Can I give the code as above, like giving a html link page in a frame, and in other frame, a HTML code.
Yes You can. The <frameset> tag defines a frameset.
The <frameset> element holds one or more elements. Each element can hold a separate document.
<frameset> and <frame> are both deprecated. Avoid using them.
Use an <iframe> instead.
Here's an example: http://jsfiddle.net/kqo9yhk5/
HTML:
<iframe src="http://jsfiddle.net/" frameborder="0"></iframe>
On siteA, it has a login page (loginframe.jsp) that is enclosed in a frameset: like below:
<frameset rows="39px,*" border="0" frameborder="0" framespacing="0">
<frame src="myAccountTopFrame.jsp" name="top" frameborder="0" scrolling="no" >
<frame src="login2.jsp" name="bottom" frameborder="0" >
</frameset>
On siteB, it has an app that allows user to access siteA without manually perform the login. It basically does a form action post to siteA with userID and password embeded in the form. It takes user directly to siteA main menu without problem, except that the frame is missing. This is because it is not coming thru the login page. Is there a way to do a post and make the response be the src of a frame? ==>
make this
<frame src="login2.jsp" name="bottom" frameborder="0" >
become
<frame src="response of a post" name="bottom" frameborder="0" >
Below is what the siteB form post looks like:
<html>
<body>
<form name=LOGIN action="http://siteA/autoLogin"" method=POST>
<input type=hidden name="LoginName" value="<%=myacct.getLoginName()%>">
<input type=hidden name="Password" value="<%=myacct.getPassword()%>">
</form>
<script language=javascript>
document.forms[0].submit();
</script>
</body>
</html>
Note: both siteA and siteB uses jsp view technology.
I have two IFRAMEs. Each IFRAME is loaded dynamically as the result of submitting a FORM. The result of each FORM submit is a dynamically generated jpeg image (Content-type: image/jpeg). The following page displays correctly (you can see both images). If you try to print this page in IE however, you just get an outline of the images, but not the actual images. It prints correctly in Safari and Chrome. How can you get the IFRAME images to print along with the rest of the document in IE?
I am using IE 9.0.8112.16421.
<HTML>
<HEAD>
<TITLE>View Image</TITLE>
</HEAD>
<BODY onLoad="top.document.Form1.submit();top.docment.Form2.submit();">
<FORM NAME=Form1 ACTION="URL" METHOD=POST Target=Img1>
<INPUT TYPE=HIDDEN NAME=ID VALUE=123>
<INPUT TYPE=HIDDEN NAME=Cmd VALUE=DispImage1>
</FORM>
<FORM NAME=Form2 ACTION="URL" METHOD=POST Target=Img2>
<INPUT TYPE=HIDDEN NAME=ID VALUE=345>
<INPUT TYPE=HIDDEN NAME=Cmd VALUE=DispImage2>
</FORM>
<IFRAME NAME=Img1 SRC=Javascript:'' WIDTH=500 HEIGHT=250 FRAMEBORDER=0 SCROLLING=no>
</IFRAME><BR>
<IFRAME NAME=Img2 SRC=Javascript:'' WIDTH=500 HEIGHT=250 FRAMEBORDER=0 SCROLLING=no>
</IFRAME>
</BODY>
</HTML>
OK so I'm coding something and i have a left frame, a right frame, and of coarse the main frameset html document. I want to have a link in the left frame that when clicked will jump to information on the right frame like and , but i obviously not working, i believe I've seen it done, just don't know how to do it. Thanks
The link target must be the name of the frame you want the content to load into.
Link
Frameset:
<frameset cols="25%,*,25%">
<frame src="" />
<frame src="" />
<frame src="" name="myRightFrame" />
</frameset>