August 4, 2008 at 11:58 AM
Hi friend,
Step To solve the problem: "winopenradio.jsp"
1. First Select Radio Button of the corresponding Employee Id.
2. Click on "Select" Button "showEmp()" method works.
3. for (var i=0; i < document.employee.empid.length; i++){
if (document.employee.empid[i].checked){
var emp_value = document.employee.empid[i].value;
}
}
This Codes set the value of Selected Employee Id.
4.The code
var url="getuser.jsp"
url=url+"?emp_id="+emp_value;
fetch the result from database corresponding selected employee id.
5.The code in "getuser.jsp"
data = ":" + rs.getString(2) + ":" + rs.getString(3) +":"+ emp_id;
changes to this data = rs.getString(2) + " " + rs.getString(3) +":"+ emp_id;
rs.getString(2) : First Name of Employee
rs.getString(3) : Last Name of Employee
emp_id : Employee Id
create a result string as a having ":" seperated values.
6. The code
var showdata = xmlHttp.responseText;
var strar = trim(showdata).split(":");
Split the result string into array stored in "strar".
This array strar[0] retrieve the name of employee.
strar[1] retrieve the id of employee.
7.The code
opener.document.getElementById("emp_id").value=strar[1];
opener.document.getElementById("emp_name").value=strar[2];
changes to
opener.document.getElementById("emp_id").value=strar[1];
opener.document.getElementById("emp_name").value=strar[0];
set the parent window value.
8. After the pop window "winopenradio.jsp" close.
and result show at winopenradio.jsp".
--------------------------------------------------------
Read for more information.
http://www.roseindia.net/jsp/popup-window-using-ajax-in-jsp.shtmlThanks.
Related Tutorials/Questions & Answers:
Simple Program Very Urgent.. - JSP-ServletSimple Program Very Urgent.. Respected Sir/Madam,
I am R.Ragavendran.. Thanks for your superb reply. I find a
simple problem which i have tried my... coding asap because its most
urgent..
Thanks/Regards,
R.Ragavendran..
Program Very Urgent.. - JSP-ServletProgram Very Urgent.. Respected Sir/Madam,
I am R.Ragavendran.. Thanks for your superb reply. I got the link you sent. But I find a
simple problem... its most
urgent..
Thanks/Regards,
R.Ragavendran..
Hi friend
Advertisements
Simple problem Very Urgent - JSP-ServletSimple problem
Very Urgent Respected SDir/Madam,
I am R.ragavendran.. Thanks for your superb reply. I got the coding. But I find a
simple problem which i hava tried my level best to solve. A pop up window is opening
very urgentvery urgent **
how to integrate struts1.3
,ejb3,mysql5.0 in jboss server with
myeclipse IDE
Pop up Very Very Urgent - JSP-Servlet=''
Its
Very Urgent..
Please send me the coding asap..
Thanks...Pop up
Very Very Urgent Respected Sir/Madam,
I am R.Ragavendran.. I got your reply.. Thank you
very much for the response. Now I am sending
Very Very Urgent -Image - JSP-ServletVery Very Urgent -Image Respected Sir/Madam,
I am... with some coding, its better..
PLEASE SEND ME THE CODING ASAP BECAUSE ITS
VERY VERY URGENT..
Thanks/Regards,
R.Ragavendran... Hi friend,
Code
JSP and AJAX- very urgent - Ajax
Plz its
very very Urgent..
Regards,
Ragavendran...JSP and AJAX-
very urgent Respected Sir/Madam,
I am Ragavendran.. I have a
simple doubt.. At present, I am in a module of the project
Help Very Very Urgent - JSP-Servlet requirements..
Please please Its
Very very very very very urgent...
Thanks...Help
Very Very Urgent Respected Sir/Madam,
I am sorry..Actually the link u have sent was not my actual requirement..
So,I send my requirement
JSP and AJAX very urgent - AjaxJSP and AJAX
very urgent Hi Team,
This is Ragavendran.R.. I have a
very basic doubt in AJAX. While Using AJAX, of course, there will be tag involved in JSP page. But in my current project, I am using too many
tags
Ple help me its very urgentPle help me its
very urgent Hi..
I have one string
1)'2,3,4'
i want do like this
'2','3','4'
ple help me
very urgent Program urgent - JSP-Servlet
Please please its
very urgent..
Thanks/Regards...
Program urgent Respected Sir/Madam,
I am R.ragavendran.. Actually my code shows the following output:
There is a combo box which
Program Urgent - JSP-Servlet automatically with the selected Employee ID and Name.
Its
Very Urgent..
Please send me...
Program Urgent Respected Sir/Madam,
I am R.Ragavendran. I am in
urgent need of the coding. My requirement is as follows:
Beside Enter Employee ID
Basic problem but very urgent - JSP-ServletBasic problem but
very urgent Respected Sir/Madam,
I am R.Ragavendran.. Thanks for your superb reply. I got the link you sent. But I find a
simple... me the cause of the problem asap because its most
urgent..
Thanks/Regards
very urgent, want to submit my project on mondayvery urgent, want to submit my project on monday i have the code for connected combo-boxes(jsp). But the thing i want to know is, how to access the values selected in those combo-boxes, for storing in database. in the case
JSP,JDBC and HTML(Very Urgent) - JSP-ServletJSP,JDBC and HTML(
Very Urgent) Respected Sir/Madam,
Thanks... to ROSEINDIA team.. This is
Very Urgent. Plz Plz send me the coding ASAP... is as follows:
HOME PAGE:
Actually my
program deals with accessing employee
very urgent - Java Server Faces Questions check it once and give me a correct solution.
It is
very urgent for me.
Thanks...
very urgent Hi sir,
yesterday i send total my code to find where i have done mistake ,you send a reply for that also but in that you told remove
very urgent - Java Server Faces Questionsvery urgent Hi sir,
see my code and please tell me mistake. it is
very urgent for me.
here is my code:
addmin.jsp:
Users...
deepak@roseindia.net
8888
deepak
kumar
It is
very urgent for me please give
Programming help Very Urgent - JSP-Servlet
Please please its
very urgent..
Thanks/Regards,
R.Ragavendran.. ...Programming help
Very Urgent Respected Sir/Madam,
Actually my code shows the following output:
There is a combo box which contains all the ID's
Popup very urgent plz - JSP-ServletPopup
very urgent plz Respected Sir/Madam,
I am R.Ragavendran.. I got your reply.. Thank you
very much for the response. Now I am sending the code...=''
Its
Very Urgent..
Please send me the coding asap..
Thanks/Regards
Validating Number Very Urgent - JSP-ServletValidating Number
Very Urgent Respected Sir/Madam,
I am...('id').value=
document.getElementById('name').value=''
Its
Very Urgent.. Please send me the coding asap..
Thanks/Regards,
R.Ragavendran..
Very urgent Image Selection - JSP-ServletVery urgent Image Selection Respected Sir/Madam,
I am R.Ragavendran.. If you are telling that your coding works fine, then can u plz tell me or send me the output of the following code asap?
var imageURL
Please help me... its very urgentPlease help me... its
very urgent Please send me a java code to check whether INNODB is installed in mysql...
If it is there, then we need to calculate the number of disks used by mysql
very urgent - Design concepts & design patternsvery urgent Hi friends,
I have a page layout with a menu on the left, the menu looks perfect in my personal system but the spacing and the rollover effect is all messed up in server system. How can i fix this :
I only have
plz help -java project very urgentplz help -java project
very urgent ? Ford furniture is a local furniture store in acts, and they as CS graduate students to implement a software system to generate various reports for them at the end of each month. You
A Simple programA
Simple program Hi I have written the following code:
class FirstRectangle{
public int rectArea(int l,int b){
int farea = l*b;
System.out.println("Required Area::"+farea);
return farea
Image Program Urgent - JSP-ServletImage
Program Urgent Respected Sir/Madam,
I am R.Ragavendran.. Actuaaly in the Image Selection coding which is produced below, I am getting the Emp ID in the Emp ID text box but not the exact Emp ID which I have selected
swing program plz urgent sir - Java Beginnersswing
program plz
urgent sir
hi sir,i waan a jtable swings
program table having column names "itemid","price".Initially table having single empty row.whenever we click the "enter" button automatically new row will be insert
Simple JSP program example with the
simple JSP example
program.
Give me
simple jsp
program example.
Thanks
HI,
The
very simple JSP
program is to display the current date on the JSP...
Simple JSP
program example Hi,
How to make
simple jsp
program Program Arrow selection Most Urgent - JSP-ServletProgram Arrow selection Most Urgent Respected Sir/Madam,
I am R.Ragavendran.. I got your coding which is highly appreciable.. As per my requiremennt,there are image buttons for each row in the database.. But i am
simple program questionsimple program question how do i get a java
program to take an input from the user and have it terminate by a period and not by pressing enter
Simple JSP programSimple JSP program create a
simple jsp page in which number is to be entered by user in jsp page and submit button clicked.If number entered is greater then 100,then message box "no is greater" elseif less "no is lesser
UrgentJ2ME programming Hi,
J2ME programming - How to learn J2ME Programming
very fast?
Thank You
Three Dimensional Array program
Three Dimensional Array
program
This is a
very simple Java
program. In this
program we...
name "ThreeDMatrix" . We are going to create 3 by 4 by 5
program. We
Two Dimensional Array Program;
This is
very simple program of Java. In this lesson we
will learn how to display arrange form of two dimensional array
program... a integer for array declaration Two dimensional array
program. We are going
Help me to write this simple java frame program Help me to write this
simple java frame
program I want to write a Java
program for....
To create a frame with 4 text fields;name,street,city and pin;with suitable labels.
Also add a button "OK". After enter values
Simple Java class program - Java BeginnersSimple Java class program Hi sir,
Please help me Write a
simple class that iterates through all the arguments passed in on the command line and prints them out to the screen.
If no arguments are specified print a message