[Javascript] Inherit data

Walter Torres walter at torres.ws
Fri May 17 14:16:21 CDT 2002


I see 2 solutions...

1)

his is done on the server. It accepts the data, and then populates the new
page as it sends it.

2)

If this is in a sub frame, you can place these as varialbes in the TOP level
and commit the values to these variable (top.fName) and then have the second
page pull the data out.

Walter

> -----Original Message-----
> From: javascript-admin at LaTech.edu
> [mailto:javascript-admin at LaTech.edu]On
> Behalf Of Glenn Morris
> Sent: Friday, May 17, 2002 1:58 PM
> To: javascript at LaTech.edu
> Subject: [Javascript] Inherit data
>
>
> Hello, I am new to Javascript (and this group). What I am trying to do
> is as follows:
> Page1.html - has 2 fields, LName and FName they are input type text.
> What I am trying to do is when a person submits their name a new
> document (Page2.html)
> comes up with both the LName field and the FName field inherited from
> Page1. The thing is I want both those fields to
> be editable (input type="text") on the new form so a person could
> change them. (There will be other fields on the new form but they will
> not
> inherit so there is no problem with them).
>
> Some script I was working on below:
>
> Page1.html
> <Input type = "text" name="LName" ><br>
> <Input type = "text" name="FName" ><br>
> <SCRIPT LANGUAGE="Javascript">
> var newWindow
> function NextPage()
> {
> newWindow = window.open
> ("Page2.html")
> }
> {
> newWindow.opener = self
> }
> </SCRIPT>
> <INPUT TYPE=button VALUE="Enter" onClick="NextPage()">
>
> Page2.html
> <Input type = "text" name="LName" ><br>
> <Input type = "text" name="FName" ><br>
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list