473,667 Members | 2,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

forms and frames

*** post for FREE via your newsreader at post.newsfeed.c om ***

hello,

i have a pages that loads 2 frames, the top is a "does this look all
right?" frame with 2 links, yes and no. the bottom is the page the user
is looking at. the top also contains a form with information to be passed
to the next page. i can't figure out how to break out of the frame on a
submit. if that is unclear, here is a bit of code:

frame.html:

....
<FRAMESET ROWS="80,*" FRAMEBORDER="no " BORDER="0" FRAMESPACING="0 ">
<FRAME NAME="top" SCROLLING="no" NORESIZE SRC="join_2_1.p hp?<?php
echo $src; ?>" />
<FRAME NAME="main" SCROLLING="auto " SRC="<?php echo $SiteUrl; ?>" />
</FRAMESET>
....

join_2_1.php:

....
<SCRIPT>
function submitForm(form Index) {
var form = document.forms[0];

if (formIndex == 0) {
form.action = "join3.php" ;
} else if (formIndex == 1) {
form.action = "join.php";
}
form.submit();
}
</SCRIPT>
....
<TABLE BORDER="0">
<TR>
<TD COLSPAN="2">Doe s your site look OK without violating our rules?
</TD>
</TR>
<TR>
<TD ALIGN="center">
<A TARGET="_top" HREF="javascrip t:submitForm(0) ;">YES</A>
</TD>
<TD ALIGN="center">
<A TARGET="_top" HREF="javascrip t:submitForm(1) ;">NO</A>
</TD>
</TR>
</TABLE>
<FORM METHOD="post" ACTION="join3.p hp">
<INPUT TYPE="hidden" NAME="ref" VALUE="<?php echo $ref; ?>" />
<INPUT TYPE="hidden" NAME="Name" VALUE="<?php echo $Name; ?>" />
<INPUT TYPE="hidden" NAME="Email" VALUE="<?php echo $Email; ?>" />
<INPUT TYPE="hidden" NAME="pass1" VALUE="<?php echo $pass1; ?>" />
<INPUT TYPE="hidden" NAME="pass2" VALUE="<?php echo $pass2; ?>" />
<INPUT TYPE="hidden" NAME="ViewEmail " VALUE="<?php echo $ViewEmail;
?>" />
<INPUT TYPE="hidden" NAME="SiteName" VALUE="<?php echo $SiteName;
?>" />
<INPUT TYPE="hidden" NAME="SiteUrl" VALUE="<?php echo $SiteUrl; ?>" />
<INPUT TYPE="hidden" NAME="SiteLangu age" VALUE="<?php echo
$SiteLanguage; ?>" />
</FORM>
....

when i click a link in the top frame, the next document that loads does
not break out of the frame. any ideas?

andrew
-----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----

Jul 20 '05 #1
1 3565
You can use the TARGET attibute with a FORM to target the top frame.

Andrew Clark wrote:
*** post for FREE via your newsreader at post.newsfeed.c om ***

hello,

i have a pages that loads 2 frames, the top is a "does this look all
right?" frame with 2 links, yes and no. the bottom is the page the user
is looking at. the top also contains a form with information to be passed
to the next page. i can't figure out how to break out of the frame on a
submit. if that is unclear, here is a bit of code:

frame.html:

...
<FRAMESET ROWS="80,*" FRAMEBORDER="no " BORDER="0" FRAMESPACING="0 ">
<FRAME NAME="top" SCROLLING="no" NORESIZE SRC="join_2_1.p hp?<?php
echo $src; ?>" />
<FRAME NAME="main" SCROLLING="auto " SRC="<?php echo $SiteUrl; ?>" />
</FRAMESET>
...

join_2_1.php:

...
<SCRIPT>
function submitForm(form Index) {
var form = document.forms[0];

if (formIndex == 0) {
form.action = "join3.php" ;
} else if (formIndex == 1) {
form.action = "join.php";
}
form.submit();
}
</SCRIPT>
...
<TABLE BORDER="0">
<TR>
<TD COLSPAN="2">Doe s your site look OK without violating our rules?
</TD>
</TR>
<TR>
<TD ALIGN="center">
<A TARGET="_top" HREF="javascrip t:submitForm(0) ;">YES</A>
</TD>
<TD ALIGN="center">
<A TARGET="_top" HREF="javascrip t:submitForm(1) ;">NO</A>
</TD>
</TR>
</TABLE>
<FORM METHOD="post" ACTION="join3.p hp">
<INPUT TYPE="hidden" NAME="ref" VALUE="<?php echo $ref; ?>" />
<INPUT TYPE="hidden" NAME="Name" VALUE="<?php echo $Name; ?>" />
<INPUT TYPE="hidden" NAME="Email" VALUE="<?php echo $Email; ?>" />
<INPUT TYPE="hidden" NAME="pass1" VALUE="<?php echo $pass1; ?>" />
<INPUT TYPE="hidden" NAME="pass2" VALUE="<?php echo $pass2; ?>" />
<INPUT TYPE="hidden" NAME="ViewEmail " VALUE="<?php echo $ViewEmail;
?>" />
<INPUT TYPE="hidden" NAME="SiteName" VALUE="<?php echo $SiteName;
?>" />
<INPUT TYPE="hidden" NAME="SiteUrl" VALUE="<?php echo $SiteUrl; ?>" />
<INPUT TYPE="hidden" NAME="SiteLangu age" VALUE="<?php echo
$SiteLanguage; ?>" />
</FORM>
...

when i click a link in the top frame, the next document that loads does
not break out of the frame. any ideas?

andrew

-----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----


Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2855
by: Billy Jacobs | last post by:
I have a web application which is using Forms Authentication. The main page of the site is a frames page. If I type in the url to the frames page, it loads the login page inside of the main frame instead of redirecting to the login page by itself. Why doesn't it redirect completely to the login page.
1
1750
by: JoeBaker | last post by:
i'm trying to use javascript to change the content of a textbox in a different frame. by clicking on a 'folder' link in 'leftFrame' i want to put the value assigned by that link into the 'folderName' textbox in the 'uploadForm' form in 'mainFrame'. i'm doing this as... onClick="parent.mainFrame.uploadForm.folderName.value='folder';" this works perfectly fine with IE and Safari on my Mac OS X machine
3
1514
by: Audrius | last post by:
Hello, I have to iframes within one page. When I triger action in one frame, I need to update the content's of other frame's selection list. How to access second frame's form element from my first frame in index page? Suppose I named my second frame "content", and form element is named simply "form1". If I try to access that form by refering:
2
1614
by: sushi | last post by:
Hello, I have an web site which uses forms authentication. The application uses frames. When the authentication time out occurs and if we click on any one of the frames, each individual pages shows login page. Is there any way out to show login page in whole page and not in each individual frames. Else if there any event which is called when the authentication cookie expires. Thanks,
2
2876
by: Andy Fish | last post by:
Hi, I have a problem using forms based authentication with a frameset. I made sure the containing frameset is an aspx so the first time the user tries to access the application he just gets the login page, and the frameset doesn't appear until after he's logged in However, when the user's login session times out and he subsequently tries to work in one of the frames (i.e. clicks a link). that individual frame
0
2119
by: Lee | last post by:
Hi all ;) Preamble -------- I'm using URL rewriting to enforce a frames policy (yeah, I know frames are 'bad' :) - i.e. if a request comes in for a page which should be nested within a frameset, the url is rewritten to something of the form 'http://www.blah.com/framesdoc.aspx?lowerFrame=/page.aspx', the 'framesdoc' page then dynamically generates the src attribute for the
8
7902
by: J.S. | last post by:
I was under the impression that frames could be used in Windows forms in earlier version of VB. However, in VB 2005 Express I don't see any such tool/control. Is SplitContainer used for this purpose in VB 2005? I want to create a frame in a Windows form because I'd like button clicks on the left side of the form to change the form elements shown in the right side of the form. Would each of the buttons on the left require a...
9
4519
by: Yuk Tang | last post by:
I'm trying to create webpage-style frames on a form, and all the get parent size and resize children malarkey is giving me a headache. What I would like to do is define some frames on the parent forms, then load the children into those frames, maximised (to fill the frame). SDK has an intriguing section titled "Windows Forms Layout Options", but it doesn't actually say how. From browsing google archives, it seems that this is a fairly...
1
6745
by: troytabor | last post by:
I was having an issue at www.logolounge.com where the form in the bottom frame was no longer accessible through javascript in FireFox 1.5.0.8. I found the solution and wanted to share it. The previous code, which no longer works in FireFox, to access the bottom frames form is as follows: function addBox(a) { URL = "to_box.asp?a=" + a+ "&b=" + top.bottomFrame.frmBoxNames.selID.options.value; top.bottomFrame.location.href = URL
0
8365
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8883
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8788
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8563
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7390
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.