Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JavaScriptQuestions Populating values from Child Popup Jsp to Parent jsp
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Bee
Populating values from Child Popup Jsp to Parent jsp
2 Answer(s)      3 years and 5 months ago
Posted in : JavaScript Questions


Hi,

My requirement follows like this.. I have a parent jsp where u have search button. If u click on this a popup jsp opens and based on certain critierias in popup jsp we get some results of records with checkbox option in front of it. If user selects the checkbox of a particular record and clicks OK button in popup jsp then popup jsp should get closed and inturn it should be populated in parent jsp within a div.

Please let me know if you require any infomration.

Regards, Bharat


Advertisement
View Answers

August 29, 2012 at 1:11 PM


i have provided example using the text fields use it as reference this function in the parent file

function pop(col) { 
    var f=document.form;
    f.method="post";
    var pn=document.getElementById("parent_field_id").value;
    var W1 = window.open("ChildFileName.jsp?colname="+pn,'PopFrameless','height=310,width=310,scrollbars=yes,titlebar=no,toolbar=no,menubar=no,resizable=no,status=no'); 
    W1.moveTo(450,400);

}

this function in the childFileName file

function showSelected(){

var i=document.getElementById("child_field_id").value;
opener.document.form.parent_name_id.value = i;
opener.document.form.submit();
window.close();

}

i think this mapping is usefull to you.



August 29, 2012 at 1:14 PM


sorry for mis spelt in the

showSelected(){
opener.document.form.parentfieldid.value=i;
}


Related Tutorials/Questions & Answers:
Populating values from Child Popup Jsp to Parent jsp
Populating values from Child Popup Jsp to Parent jsp  Hi, My requirement follows like this.. I have a parent jsp where u have search button. If u click on this a popup jsp opens and based on certain critierias in popup jsp we
Populating child dropdownlists in JSP/Servlet
Populating child dropdownlists in JSP/Servlet  Populating child dropdownlists in JSP/Servlet
Advertisements
Passing values from child window to parent window.
Passing values from child window to parent window.  Hai, I'm having a requirement ,in that when i open a (pop-up)child window from a parent window... will have some more values in it.The values which are selected from child window
Passing values from child window to parent window.
Passing values from child window to parent window.  http://www.roseindia.net/java/pass-value-example/pass-value-child-to-parent.shtml I have gone thru the link but my requirement is checkboxes.can u please explain
Parent - child jsp communication - JSP-Servlet
. 1) How could I pass values from a parent jsp to a popped up child jsp? Let me put my case. I have a JSP with all my resultsets in tabular form. for eg...Parent - child jsp communication  Hello, Thanks for your answers
Parent - child jsp communication - JSP-Servlet
. 1) How could I pass values from a parent jsp to a popped up child jsp...Parent - child jsp communication  Hello, Thanks for your answers.../popup-window-using-ajax-in-jsp.shtml http://www.roseindia.net/jsp/pop
Pass value from child to parent window
to parent window We can pass values from a child window in Html to the parent... Pass value from child to parent window   ... from the child window and then pass it to the parent window. To explain
how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page   how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page   how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page   how to call the parent page from child without refreshing the parent and my parent window uses the master page
Call the parent page(uses master page) from the child page
Call the parent page(uses master page) from the child page  how to call the parent page from child without refreshing the parent and my parent window uses the master page
Call the parent page(uses master page) from the child page
Call the parent page(uses master page) from the child page  how to call the parent page from child without refreshing the parent and my parent window uses the master page
popup ballon in jsp - JSP-Servlet
popup ballon in jsp  How to show a popup ballon in jsp when pointing... the following code: #popup{ width:147px; position:absolute; display:none; } #popup .top{ background-image: url('top.gif'); height:16px
parent and child dropdown
parent and child dropdown  Hi, I have one scenario in spring,i need to populate child drop down,based on parent dropdown using spring mvc and ajax... know how to use it in child drop down.How to set that child dropdown in success
populating text box using jsp code
populating text box using jsp code  Sir, How to populate related values in a text box after selecting value from drop down list using JSP and mysql. I tried using Ajax from your example. But for some browser it does not support
Get values from JSP pages - JSP-Servlet
Get values from JSP pages  I have welcome.jsp in which it has... to another JSP page?Do you want to use database to add column values or you want... Name, City, State) into into next jsp page. note these are not Text fields
reading dropdown values from properties file in jsp
reading dropdown values from properties file in jsp  reading dropdown values from properties file in jsp
how to insert values from jsp into ms access
how to insert values from jsp into ms access   how to insert values using jsp into ms access database
how to set values from parent page to iframe in javascript
how to set values from parent page to iframe in javascript  how to set values from parent page to iframe in javascript pls reply me as possible as I am in great trouble
How to carry multiple values from a Servlet to a JSP?
How to carry multiple values from a Servlet to a JSP?  By using the below code I am able to carry the username to a JSP (single value... needs to be carried from my servlet to a JSP. How do I do
How to pass multiple values from a servlet to JSP?
How to pass multiple values from a servlet to JSP?  hi, I want to pass multiple values form a servlet to JSP. Hw do i do that? I am able to send one value at a time without any prb, but I am unable to carry multiple (from two
getting values from database - JSP-Servlet
getting values from database  I tried the following code abc.html aaa.jsp I am not getting exceptions now... JSP code separately.If it will not display database values then try your code
Retrive values from an arraylist and display in a jsp?
Retrive values from an arraylist and display in a jsp?  Hi, I need help in jsp to display values of an ArrayList in jsp. There is a java file... of the ArrayList in jsp in a tabular form/way. if (request.getParameter("action
how to get a values from processRecord - JSP-Servlet
how to get a values from processRecord  dear sir, i have a problem in getting a values from java to jsp.Here jsp is used to read a excel sheet that intern call a java program so i want a column values i.e a column contains
Retrive values from an arraylist and display in a jsp?
Retrive values from an arraylist and display in a jsp?  Hi, I need help in jsp to display values of an ArrayList in jsp. There is a java file... of the ArrayList in jsp in a tabular form/way. if (request.getParameter("action
Radio button with values from a String ArrayList in JSP?
Radio button with values from a String ArrayList in JSP?  Radio button values in JSP ArrayList<String> cs = CourseAssignments.getInstance...: "org.apache.jasper.JasperException: An exception occurred processing JSP page /ComplexSearch/Seek.jsp at line
retrieving values from dynamically added textboxes in jsp - JSP-Servlet
retrieving values from dynamically added textboxes in jsp  hai friends, iam new to this site ,please help me in this senario in jsp how to retrieve values from dynamically added textbox like we can see in naukri.com
Displaying Constant values from Interface in JSP - JSP-Servlet
Displaying Constant values from Interface in JSP  Hi, ******Sorry... need to display suitable fields in my jsp but this should be done upon suitable... values public interface ProjConstant { public static final String PROJECT_NAME
Popup Window using Ajax In JSP
Popup Window using Ajax In JSP       In this section, we will develop a Popup Window application using Ajax in JSP. For this, we will create the following
populating one dropdown box depending on the value of other using jsp
populating one dropdown box depending on the value of other using jsp  HI i have scenario i need to populating one dropdown box depending on the value of other using the below table country name state and city name should load
not able to get values from jsp file - JSP-Servlet
not able to get values from jsp file  hi thanks for u feedback, her am sending the file jsp and servlet but in the servlet file am not able to get... remove encrtype from form tag its work fine please go through the file
Advertisements
 

 

 

DMCA.com