Re: Frames Question

From: Date: Thu, 02 Nov 2000 00:31:19 +0000
Subject: Re: Frames Question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-23279@lists.php.net to get a copy of this message
Toby, I'm a total kook at JavaScript. If I may impose upon you for a bit more help it would be most kind of you. I'm getting this error: =========== JavaScript Error: http://192.168.0.100/dcris/nav_frame.php, line 14: top.frames.main.forms has no properties. ========== And my nav_frame liiks like this: ========= <html> <head> <title>Nav Frame</title> <body> <form name="infoControls"> <input type="button" value="Submit" onclick="javascript:top.frames.main.forms['lookup'].submit();"> <input type="button" value="Submit" onclick="javascript:top.frames.lFrame.forms['info'].reset();"> </form> </body> </html> ========== I'll bet there's a whole bunch more I need like maybe <script language=javascript> tags with initialization code and such. I'm starting to look at the javascript docs. But if you have time I can use some help. Thanks a bunch. Toby Miller wrote: > Tim, > > It's pretty simple. Take the following scenario for example: > > frame 1: left frame (lFrame) > frame 2: right frame (rFrame) > > Your form is in frame 1 and your buttons are in frame 2. > > Say your form in frame 1 looks like this: > <form name="info" method="post" action="sendmail.php"> > <input type="firstName" size="20"> > <input type="lastName" size="20"> > </form> > > Now you could do buttons (not submit and reset) in frame 2 like this: > <form name="infoControls"> > <input type="button" value="Submit" > onclick="javascript:top.frames.lFrame.forms['info'].submit();"> > <input type="button" value="Submit" > onclick="javascript:top.frames.lFrame.forms['info'].reset();"> > </form> > > You could also use links around text or images like this: > <a > href="javascript:top.frames.lFrame.forms['info'].submit();">Submit</a> > <a href="javascript:top.frames.lFrame.forms['info'].reset();"><img > src="reset.gif" width="100" height="18" > border="0"></a> > > There are many different ways to go about it, but they all involve > JavaScript. I hope this helps out. > > Toby > > ----- Original Message ----- > From: "Tim Sawyer" <tsawyer@socal.rr.com> > To: "PHP-GENERAL" <php-general@lists.php.net> > Sent: Saturday, October 28, 2000 4:56 PM > Subject: [PHP] Frames Question > > > Is it possible to have a fill in form in one frame and the submit and > > reset buttons for the form in another frame? I want the have the buttons > > in a navigation frame, if you will. Would this require Java Script? Any > > pointers would be greatly appreciated. Thanks. > > > > -- > > Tim Sawyer > > :wq > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Tim Sawyer :wq

« previous php.general (#23279) next »