dcsimg
Submitting a form in Frame2 from Frame1
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ambereen_Javed
Posted On:   Tuesday, April 26, 2005 01:14 AM

I have two frames in a html page. Frame1 and Frame2. Frame1 contains fields for entering data like name,address etc. Frame 2 is a search and displays the information. Now,suppose they edit some record that has to be reflected in the second frame too.So i need to submit the second frame i.e Frame2, after doing the update operation in Frame1. i tried using the following parent.frames[1].document.forms.form6.submit(); parent.Frame2.document.form6.submit(); parent.frames[1].document.form6.submit(); parent.frames[1].document.forms[0].submit(); (form6 is the name of the form in Frame 2) All the above give a js error saying that "object does'nt support the   More>>

I have two frames in a html page.

Frame1 and Frame2.

Frame1 contains fields for entering data like name,address etc.
Frame 2 is a search and displays the information.

Now,suppose they edit some record that has to be reflected in the second frame too.So i need to submit the second frame i.e Frame2, after doing the update operation in Frame1.
i tried using the following

parent.frames[1].document.forms.form6.submit();
parent.Frame2.document.form6.submit();
parent.frames[1].document.form6.submit();
parent.frames[1].document.forms[0].submit();
(form6 is the name of the form in Frame 2)

All the above give a js error saying that "object does'nt support the property or method".

Any idea what is causing this error.Thanx in advance for your responses.

   <<Less
About | Sitemap | Contact