Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Problem Cloning Form Object


Message #1 by "Azhar" <azhar1_azhar1@y...> on Mon, 13 Jan 2003 07:33:47
Hello Azhar,
Probably you are trying to achieve this. "Form data is entered in top.htm and submitted thru bottom.htm" ? and for the same you wish
to copy the state of form in bottom.htm. If this is actually what you specified, I'd suggest you to have a function in bottom.htm
and make a call to it when the "submit" button is pressed in top.htm. In the function collect the information from top frame's form
with correct references (Make it sure that both documents are on same server ). Now pass these values to the server and wait for
server response, Server should response you some html that will reset top frame's form.
 




>From: "Azhar" 
>Reply-To: "javascript" 
>To: "javascript" 
>Subject: [javascript] Problem Cloning Form Object 
>Date: Mon, 13 Jan 2003 07:33:47 
> 
>I am trying to assign/append/clone/add/insert, etc. a form object of one 
>frame (i.e., top.htm below) to the other frame (i.e., bottom.htm below). I 
>wish to send the form of top.htm from the frame of bottom.htm. I 
>could have used form object's submit() method from the bottom frame but 
>that way I have to download top frame again from the server, which is 
>quite large. After submitting the form object of top.htm from 
>bottom.htm, I will reset the fields of form object of top.htm provided I 
>assign/append/clone/add/insert, etc. one frame's form object to the form 
>object in other frame. 
> 
>Please advise how can I assign/append/clone/add form object, i.e., 
>topForm, to form object of bottomFrame 
>i.e., bottomForm. 
> 
> 
>//*******************************main.htm********************************// 
> 
> 
> 
> 
>>border="0"> 
> 
> 
> 
> 
> 
> 
> 
>//*****************************top.htm***********************************// 
> 
> 
> 
> 
> 
>

> 
> 
> 
>
> 
> 
> 
>
> 
> 
> 
>
> 
> 
> 
>
> 
> 
> 
>
><! around 3000 fields more in the actual file> 
> 
> 
> 
> 
>//*******************************bottom.htm******************************// 
> 
> 
> 
>

 
> 
> 
> 
>
> 
> 
> 
>--- 
Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* 

  Return to Index