Results 1 to 5 of 5
  1. #1
    blackpanther is offline Member
    Join Date
    Nov 2009
    Posts
    12
    Rep Power
    0

    Red face Need to pass a value from a parent window to a pop up or child window

    Hi All,

    I need to pass the counter timer value to the pup up window or child window from a java script. but i think reference is a problem here .

    childWindow is a pop up window which is opened from a parent window using window.open.. Now i have calculation part where the remaining time starts decreases from 10 to 1. I need to populate this value to a child window/pop up window.

    in childWindow i have textbox with id ='remSeconds'. i have used the below and tried out many scenarios where i cant populate the child window with the remainingTime.

    Please help me on this..

    I have written this in a seperate JS its not in the childwindow..
    childWindow.document.getElementById('remSeconds'). value = remainingTime;

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    What GUI library are you using? Swing? AWT? SWT? Or is this not a Java program but rather a JavaScript program? Our answers will depend on these details.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Hm, I guess you didn't feel the need to answer my questions...
    Regardless, I have a sneaking suspicion that you're wanting a javascript solution here, especially with "window.open" type method. If so, then you're best bet is to seek out a javascript forum to ask this question in. This is a java forum.

  4. #4
    blackpanther is offline Member
    Join Date
    Nov 2009
    Posts
    12
    Rep Power
    0

    Default

    hmm that isnt true if i had to travel..

  5. #5
    blackpanther is offline Member
    Join Date
    Nov 2009
    Posts
    12
    Rep Power
    0

    Default

    yup .. i need to catch up in a javascript forum.. thankyou verymuch

Similar Threads

  1. change url in parent window from child window
    By rakesh_n_mehta in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-09-2009, 12:17 PM
  2. Replies: 7
    Last Post: 05-06-2009, 12:42 PM
  3. Parent & Child window issues......
    By jithan in forum New To Java
    Replies: 2
    Last Post: 09-20-2008, 09:21 AM
  4. disable parent window
    By ismailsaleh in forum AWT / Swing
    Replies: 1
    Last Post: 01-07-2008, 11:15 PM
  5. Replies: 0
    Last Post: 08-03-2007, 04:21 PM

Posting Permissions

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