473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

submitting child form from parent window

5
Hi,

I am trying to submit form in child window from parent window itself. However, not getting through it.
e.g.
Parent Window:
[HTML]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>

<script language="JScript">
var child;

function OpenWindow()
{
child=window.open("D:\\temp\\Test2.html","test2");
child.document.f1.n.value = '123';
child.document.f1.s.value = '456';
//child.document.f1.submit();
//self.close();
}
</script>

<INput type="button" onclick = "OpenWindow();" value=Refresh>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>

</BODY>
</HTML>
[/HTML]

child Window:
[HTML]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<script language="javascript">
</script>
<INput type="button" onclick = "" value=Refresh>
<TITLE> test 2 </TITLE>
</HEAD>

<BODY>
<form name="f1">
<input type="text" name="n"/>
<input type="text" name="s" />
<input type="submit" name="suub"/>
</form>
</BODY>
</HTML>
[/HTML]

Could anybody please let me know why it not going thru >?? Is there any other way to achieve the same?

Regards,
hashyaa
Nov 7 '06 #1
4 6372
vssp
268 100+
Hi friend

I am not clear Please can u expline breifly what u need ?

vssp
Nov 7 '06 #2
hashya
5
yeh let me try to explain you.
Actually I have 1 HTML say a.html. Suppose i have a link in a.html which will open b.html in new window as child of a.html. Now b.html has a form in it. I want to access the entire form in b.html in a.html itself and even submit it on behalf of b.html.

Hope I have made it clear for u.

Regards,
hashyaaa
Nov 7 '06 #3
vee10
141 100+
hi,
is that to write the submit function in parent window or in client window

is that u want to see only the output in the child window and whole process

should be done in parent window is that ur requirement














yeh let me try to explain you.
Actually I have 1 HTML say a.html. Suppose i have a link in a.html which will open b.html in new window as child of a.html. Now b.html has a form in it. I want to access the entire form in b.html in a.html itself and even submit it on behalf of b.html.

Hope I have made it clear for u.

Regards,
hashyaaa
Nov 9 '06 #4
hashya
5
yeh thats correct. Whole process should be done in parent window and child window will just give visual to the user.
Nov 9 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Filiz Duman | last post by:
Hi, I am opening a pop up window (child) from a parent window. The Child window does show a table with multiple columns and rows, each showing a value, e.g. 9 or 10 or etc. I have the values as...
3
by: Sandfordc | last post by:
I was curious one day and started to explore the whole idea of a document opening a pop up and that pop up being able to send data, that was input by the user, back to the parent. Does anyone have...
4
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a...
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
5
by: midnight_use_only | last post by:
hi all, quick question, how do you submit a form to a parent window from a child popup window? i have the following and all online documentation *suggests* that it should work but it does NOT: ...
4
by: Richard Lewis Haggard | last post by:
What is the mechanism by which a child window can notify its parent that it has been clicked on? -- Richard Lewis Haggard www.Haggard-And-Associates.com
2
by: Jeff | last post by:
I have a Form parent window with a list view on it. When I click on an item I open another form to edit the details - this is not and cannot be a dialog window. When I close the child window I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.