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="JScri pt">
var child;
function OpenWindow()
{
child=window.op en("D:\\temp\\T est2.html","tes t2");
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="EditPl us">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Descripti on" CONTENT="">
</HEAD>
<BODY>
</BODY>
</HTML>
[/HTML]
child Window:
[HTML]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<script language="javas cript">
</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
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="JScri pt">
var child;
function OpenWindow()
{
child=window.op en("D:\\temp\\T est2.html","tes t2");
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="EditPl us">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Descripti on" CONTENT="">
</HEAD>
<BODY>
</BODY>
</HTML>
[/HTML]
child Window:
[HTML]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<script language="javas cript">
</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
Comment