how to submit modal window.

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.
 
T

Thomas 'PointedEars' Lahn

I am very very new to programing.

The first thing you SHOULD learn is what a newsgroup is and how to
ask questions (about programming) in a newsgroup properly; this is
not a (paid) support forum but a discussion group. The newsgroup's
FAQ would be a good start, you could continue reading
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.

Your source code contains non-(X)HTML/J(ava)Script content that looks like
as it is to be pre-parsed by a server-side component. Such source code is
of little to no use here since the server-side component (here: presumably
an ASP application) may create any content that contributes to the
(dys)functionality of the document which cannot be guessed by outsiders.
On the other hand, the only J(ava)Script content is commented out.

So you should either post the code received by your user agent (menu View,
menu item Source Code or similar) or -- which I strongly recommend here,
considering the code's length to be expected -- post the URL of your web
site, or create a minimized test case and post its URL.
i dont know how to set frame .

What do you mean by that? There are no frames in the usual sense
involved here.
pls help me i am very new to
programing.

Yes, you already wrote that. I am not that forgetful, you know.
this is very very urgent.

This may surprise you: The word "urgent", its comparison and synonyms
often cause the opposite behavior than expected on the reader, since we
all have very very *very* urgent business to attend to which comes first.
pls help e to find solution.

Please learn how to post.
Thanks a lot in advance.

Ditto.

Note that I have a good day today, usually I would not have bothered to
answer such a posting (considering its presentation, including its lack
of thought in general and orthography in special) which may be the reason
why this is AFAIS the only followup to date (see above).


HTH & HAND

PointedEars
--
Was muß ich ändern, damit es wieder funkt?
Eine größere Antenne holen?
-- Mario Müller in dcs.moz
<[email protected]>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top