Populate Data to Parent Window

Posted on 2011-04-28
Last Modified: 2012-05-11
IN our application There is a add new records button on my parent JSP which opens a child window and a user can select records on the child window using check boxes and the selected records on the child window need to be populated on the parent window jsp
Any idea how this can be achieved in js or jquery ?

Question by:ronan_40060
    LVL 20

    Accepted Solution

      <input type='button' value='addRecords' onclick="'child.html')">
      <div id='div1'></div>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      function ex(val)
     item1: <input type='checkbox' id='item1' VALUE='item1' onclick='ex(this.value)'>
      item2: <input type='checkbox' id='item2' VALUE='item2'  onclick='ex(this.value)'>

    Open in new window

    LVL 38

    Assisted Solution

    by:Tom Beck
    Another approach would be to use a modal popup with javascript or jquery rather than a child window. Here's one jquery example (many available). Click on "Simple Window Modal".
    LVL 9

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
    JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now