S
stellabein
Hi friends,
I am very very new to programing. i have a one main window
from that window i am opening one modal window using
showmodaldialog(m.jp...).
in that modal window i have a form. when i click save button in the
form, the for has to submit and the modal window has to close. and the
parent window have to refresh itself.
this is my modal window page.
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<html:html>
<HEAD>
<%@ page
language="java"
contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"
%>
<META http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
<LINK href="css/SNet.css" rel="stylesheet" type="text/css">
<STYLE>
.tablnk {height:100%;text-align:center;width:100;
border-right-style:solid;
border-color:background;
border-width:thin}
.abs {position:absolute}
.rel {position:relative}
</STYLE>
<TITLE></TITLE>
<!--<script type="text/javascript">
function SendInfo(){
var txtVal = document.formPop.ContName.value;
window.opener.document.supDetail.hconName.value = txtVal;
window.close();
}
</script>-->
</HEAD>
<BODY class="backgrnd" LEFTMARGIN=0 TOPMARGIN=0 BOTTOMMARGIN=0>
<html:form action="/addContact">
<center>
<table border =1 width="365" cellspacing="0">
<tr align="center" valign="top">
<td height="153">
<table width="365" border="0" cellspacing="0">
<tr class="title">
<td align=center width="365">
Add Contact
</td>
<td align=center width="1" height="23">
<input type=submit value="Save" class="yUP" />
</td>
<td align=center width="1">
<td align=center width="1">
</td>
</tr>
</table>
<table width="365" border="0" cellspacing="0">
<TR class="title2">
<td width="365" align="left"> <center> </center>
</td>
<td class=ROdata align =left width="198"></td>
</TR>
</TABLE>
<table width="365" border="0" height="110" cellspacing="0">
<html:hidden property="lsKey" value=""/>
<SCRIPT>document.all.lsKey.value =
window.dialogArguments.hkey.value;</SCRIPT>
<tr>
<td height="24" class="rolabel">Name </td>
<td colspan="2" height="24" class="rodata">
<html:text property="lscName" value="" maxlength = "20"
size="40"/>
</td>
</tr>
<tr>
<td height="25" class="rolabel">Title</td>
<td height="25" class="rodata">
<html:text property="lscTitle" value="" maxlength =
"15"/>
</td>
</tr>
<tr>
<td height="25" class="rolabel">Phone</td>
<td height="25" class="rodata">
<html:text property="lscPhone" value="" maxlength = "13"
/>
</td>
</tr>
<tr>
<td height="25" class="rolabel">Note</td>
<td height="25" class="rodata">
<html:textarea property="lscNote" rows="8" cols="30"
value="" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</html:form>
</body>
</html:html>
i dont know how to set frame . pls help me i am very new to
programing. this is very very urgent.
pls help e to find solution.
Thanks a lot in advance.
I am very very new to programing. i have a one main window
from that window i am opening one modal window using
showmodaldialog(m.jp...).
in that modal window i have a form. when i click save button in the
form, the for has to submit and the modal window has to close. and the
parent window have to refresh itself.
this is my modal window page.
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<html:html>
<HEAD>
<%@ page
language="java"
contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"
%>
<META http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
<LINK href="css/SNet.css" rel="stylesheet" type="text/css">
<STYLE>
.tablnk {height:100%;text-align:center;width:100;
border-right-style:solid;
border-color:background;
border-width:thin}
.abs {position:absolute}
.rel {position:relative}
</STYLE>
<TITLE></TITLE>
<!--<script type="text/javascript">
function SendInfo(){
var txtVal = document.formPop.ContName.value;
window.opener.document.supDetail.hconName.value = txtVal;
window.close();
}
</script>-->
</HEAD>
<BODY class="backgrnd" LEFTMARGIN=0 TOPMARGIN=0 BOTTOMMARGIN=0>
<html:form action="/addContact">
<center>
<table border =1 width="365" cellspacing="0">
<tr align="center" valign="top">
<td height="153">
<table width="365" border="0" cellspacing="0">
<tr class="title">
<td align=center width="365">
Add Contact
</td>
<td align=center width="1" height="23">
<input type=submit value="Save" class="yUP" />
</td>
<td align=center width="1">
<td align=center width="1">
</td>
</tr>
</table>
<table width="365" border="0" cellspacing="0">
<TR class="title2">
<td width="365" align="left"> <center> </center>
</td>
<td class=ROdata align =left width="198"></td>
</TR>
</TABLE>
<table width="365" border="0" height="110" cellspacing="0">
<html:hidden property="lsKey" value=""/>
<SCRIPT>document.all.lsKey.value =
window.dialogArguments.hkey.value;</SCRIPT>
<tr>
<td height="24" class="rolabel">Name </td>
<td colspan="2" height="24" class="rodata">
<html:text property="lscName" value="" maxlength = "20"
size="40"/>
</td>
</tr>
<tr>
<td height="25" class="rolabel">Title</td>
<td height="25" class="rodata">
<html:text property="lscTitle" value="" maxlength =
"15"/>
</td>
</tr>
<tr>
<td height="25" class="rolabel">Phone</td>
<td height="25" class="rodata">
<html:text property="lscPhone" value="" maxlength = "13"
/>
</td>
</tr>
<tr>
<td height="25" class="rolabel">Note</td>
<td height="25" class="rodata">
<html:textarea property="lscNote" rows="8" cols="30"
value="" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</html:form>
</body>
</html:html>
i dont know how to set frame . pls help me i am very new to
programing. this is very very urgent.
pls help e to find solution.
Thanks a lot in advance.