Ragini Shukla
jssss
1 Answer(s)      8 years ago
Posted in : Java Beginners

Ads

View Answers

October 18, 2008 at 12:52 PM


Hi friend,


"home.jsp"


<HTML>
<head>

</head>
<BODY BGCOLOR="LIGHTYELLOW">
<FORM NAME="form" METHOD="GET" ACTION="process.jsp">
<br><br>

<H3> <P ALIGN="CENTER"> <FONT SIZE=6> EMPLOYEE DETAILS </FONT> </P> </H3>
<BR>
<BR>
<TABLE CELLSPACING=5 CELLPADDING=5 BGCOLOR="LIGHTBLUE" COLSPAN=2 ROWSPAN=2 ALIGN="CENTER">
<TR>
<TD> <INPUT TYPE="button" NAME="s1" VALUE="Add Employee" onClick="window.open('save.jsp','mywindow','width=500,height=350,toolbar=no,resizable=yes,menubar=yes')">
</FONT> </TD>
</TR>


</TR> </FONT>

</FORM>
</BODY>
</HTML>

"save.jsp"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>

<script>
function winClose()
{
window.close();
}
</script>
</HEAD>

<BODY>

<form>
<table>
<tr><td>Name</td><td><input type="text" name="employee_name"></td></tr>
<tr><td>Email</td><td><input type="text" name="email"></td></tr>
<tr><td>&nbsp;</td><td><input type="button" name="save" value="Save" onclick="winClose();"></td></tr>
</table>
</form>
</BODY>
</HTML>

For any more information visit to :

http://www.roseindia.net/jsp/popup-window-using-ajax-in-jsp.shtml

Thanks









Related Tutorials/Questions & Answers: