[Javascript] Stupid Q on FORMS & TARGET

Muchacho, Laurent (TWIi London) LMuchacho at twii.net
Tue Apr 2 06:09:13 CST 2002


Hi Walter 

Try that 
javascript function to execute when you submit the form :

function submitForm(){
var str="";
	for(var i;i<document.logonForm.length;i++){
	str += document.logonForm.name+'='+document.logonForm.value+'&';
	}
document.frame['MASTER'].location.href='/thefileurl.htm?'+str 
}
html in the page 
<a href="javascript:void document.logonForm.submit()">submit form </a>


I explain make a simple loop throw the form create a string who contain the
full form name and value and change the sources of the specifique page I
think that should work in ns4 too I haven't tested yet 

Laurent 



-----Original Message-----
From: Walter Torres [mailto:walter at torres.ws]
Sent: 29 March 2002 15:12
To: javascript at LaTech.edu
Subject: RE: [Javascript] Stupid Q on FORMS & TARGET


Did that as well.

No change.

Walter


> -----Original Message-----
> From: javascript-admin at LaTech.edu
> [mailto:javascript-admin at LaTech.edu]On
> Behalf Of Peter-Paul Koch
> Sent: Friday, March 29, 2002 12:46 AM
> To: javascript at LaTech.edu
> Subject: Re: [Javascript] Stupid Q on FORMS & TARGET
>
>
>
> >I know I am overlooking something really simple here.
> >
> >I want to get the result back from a FORM submit and place it into a
> >particular FRAME.
> >
> ><form action='http://webdev1/logon.do'
> >       method='post'
> >       name='logonForm'
> >       id='logonForm'
> >       target='master.left'>
> >
> >This tells me that the reply should show up in the FRAME
> named LEFT in the
> >WINDOW named MASTER.
> >
> >Right!?!?
>
> Wrong. It tells that the reply should show up in the frame named
> "master.left" If you wnat the reply in frame left, simply do
>
>    target="left">
>
> In HTML you don't need to give the path to the frame through
> all other
> frames, as you do in JavaScript.
>
> ppk
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information.  It is intended to be conveyed only to the designated
recipient(s) named above.  If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system.  Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.



More information about the Javascript mailing list