Results 1 to 5 of 5
  1. #1
    vicky is offline Member
    Join Date
    Apr 2007
    Posts
    3
    Rep Power
    0

    Smile passing values from main page to pop up window

    Hello All,

    How to pass values from main jsp pages to pop up wondow.

    Thanks in advance,
    Vicky

  2. #2
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

    Default

    You can do with GET METHOD:
    Java Code:
    http://www.example.com/index.jsp?
    name=John+Sinclair&OK=1
    URL:
    Java Code:
        GET /index.jsp?name=John+Sinclair&OK=1
    or check this link
    Java Pop-up window from GridView Row Selection - ASP.NET Forums
    Last edited by Peter; 06-29-2007 at 01:40 PM.

  3. #3
    urssanj00 is offline Member
    Join Date
    Jan 2008
    Location
    Singpore
    Posts
    3
    Rep Power
    0

    Default

    In case you dont want to submit and pass the value using javascript only, then

    in popup window following code can be used,

    var a = window.parent.opener.document.getElementById("myte xt").value;

  4. #4
    helpful is offline Member
    Join Date
    Dec 2008
    Posts
    2
    Rep Power
    0

    Default

    Hi,

    var a = window.parent.opener.document.getElementById("myte xt").value;

    here, is "myte xt" name of the field in main page we want to refer?

    Could anyone ans fast pls? its bit urgent..

    Many thanks in advance!!

  5. #5
    helpful is offline Member
    Join Date
    Dec 2008
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Replies: 0
    Last Post: 04-01-2008, 04:14 PM
  2. unable to update MYSQL with values from jsp page
    By koushika in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-27-2008, 01:35 AM
  3. passing dynamically generated values
    By abhiN in forum Advanced Java
    Replies: 1
    Last Post: 01-20-2008, 03:21 AM
  4. main window & print dialog
    By roo7 in forum Advanced Java
    Replies: 3
    Last Post: 01-02-2008, 06:50 AM
  5. Passing the Values
    By Lagarto in forum JDBC
    Replies: 1
    Last Post: 07-16-2007, 03:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •