473,320 Members | 1,930 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,320 software developers and data experts.

how to submit modal window.

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.

Jul 23 '05 #1
1 6080
st********@yahoo.co.in wrote:
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
<http://www.catb.org/~esr/faqs/smart-questions.html>.
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
<b0************@ID-110599.news.dfncis.de>
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patrick Lim | last post by:
Here is the problem: I have written a non-modal frame class in Java for displaying help text when a user is using an application. It works as desired in that if the user selects "help" again,...
2
by: martin de vroom | last post by:
Hi, I have a web page that opens a modal dialog (client side) in the following manner onclick="window.showModalDialog('/dialog.asp',null,'dialogHeight: 200px; dialogWidth: 400px; dialogTop:...
3
by: Joel | last post by:
Hi there, My original window (A) opens a modal dialog window (B). In B, you fill out a form and submit it to itself for processing. When B reloads, it knows that is successfully processed the...
3
by: jeff | last post by:
Hello, I have a form that submits it's values to a pop-up window. I've simplied the code: <form name="formname" action="action.php" target="windowName" method="post" onsubmit="window.open('',...
1
by: amith | last post by:
Hi, I have a javascript, calendar.js which i use to enable my client to select the date. This calendar pops up on the click of a gif image. But the problem is that this poped up window is not...
2
by: Matt | last post by:
I want to know how to submit the form data to a modal dialog window? The following is page1.asp, and when the user clicks submit button, it will post the form data to page2.asp by opening a new...
1
by: gopal srinivasan | last post by:
I need to know how to close a parent modal window when child modal window opens, also i need to know the syntax for writing document on the modal window on the fly, like what we do in case of...
2
by: sthrudel | last post by:
Hi! I'm working on a web application in Asp.net and what I would like to have is a cross borwser modal dialog which accepts user's input. I would like to catch what the user clicked on the...
4
by: John Kotuby | last post by:
Hi all... I am bulding an application and wish to use custom Modal dialog windows. According to a couple of recent articles I have seen, the newer Mozilla browsers (actually I think they said...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.