|
|
| Pop up Very Very Urgent |
Expert:Ragavendran.R
Respected Sir/Madam, I am R.Ragavendran.. I got your reply.. Thank you very much for the response. Now I am sending the code.. Here When I click "View Database" Button,a small pop up window must be opened which comprises of Employee ID and Employee Name present in the database. When I click Employee ID present in the pop up box, The "Enter Employee ID" and "Enter Employee Name"text box must be filled automatically with the selected Employee ID and Name. I went through your coding but I dont know to apply it in my coding.. Her's the coding: <%@ page language="java" %> <%@ page import="java.lang.*" %> <%@ page import="java.sql.*" %>
<HTML> <BODY BGCOLOR="LIGHTYELLOW"> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:Employee","",""); Statement stmt=null; %> <FORM NAME="form" METHOD="GET" ACTION="process.jsp">
<H3> <P ALIGN="CENTER"> <FONT SIZE=6> EMPLOYEE DETAILS </FONT> </P> </H3> </BR> </BR> <BR> <BR> <TABLE CELLSPACING=5 CELLPADDING=5 BGCOLOR="LIGHTBLUE" COLSPAN=2 ROWSPAN=2 ALIGN="CENTER"> <TR> <TD> <FONT SIZE=5> Enter Employee ID </TD> <TD> <INPUT TYPE="TEXT" NAME="id"> </TD> <TD> <INPUT TYPE="SUBMIT" NAME="s1" VALUE="View Database"> </FONT> </TD> </TR> <TR> <TD> <FONT SIZE=5> Enter Employee Name </TD> <TD><INPUT TYPE="TEXT" NAME="name"> </FONT> </TD> </TR> <TR> <TD> <FONT SIZE=5> Enter New Name (For UPDATE only) </TD> <TD><INPUT TYPE="TEXT" NAME="nname"> </FONT> </TD> </FONT> </TR> <TR> <FONT SIZE=6> <TD> <INPUT TYPE="SUBMIT" NAME="s1" VALUE="Insert"> <INPUT TYPE="SUBMIT" NAME="s1" VALUE="Delete"> <INPUT TYPE="SUBMIT" NAME="s1" VALUE="Update"> <INPUT TYPE="SUBMIT" NAME="s1" VALUE="Query"> </TD> </TR> </FONT> //The following portion also gets included in this code. I have written it for Query operation.// <% if(session.getAttribute("empcode") !=null && session.getAttribute("empname") !=null) { %> <script language="javascript"> document.getElementById('id').value=<%=session.getAttribute("empcode").toString()%> document.getElementById('name').value='<%=session.getAttribute("empname").toString()%>' </script> <% session.removeAttribute("empcode"); session.removeAttribute("empname"); }
%> </FORM> </BODY> </HTML>
Its Very Urgent.. Please send me the coding asap..
Thanks/Regards, R.Ragavendran.. |
| Answers |
Hi Ragavendran,,, shortly we'll provide a tutorial link so that it will be easy for the all the beginners to get its Thorough knowledge.
Regards Meeya
|
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|