accesing value problem

Discussion in 'JavaScript' started by jg_abad, Sep 20, 2007.

  1. #1
    I want to access the value of a hidden field (declared in form of a .jsp page in a separate window) and the value needs to be changed from the different window (.jsp page). I dont get how to do it.
     
    jg_abad, Sep 20, 2007 IP
  2. daringtakers

    daringtakers Well-Known Member

    Messages:
    808
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #2
    If you are trying to access hidden field of parent window (from a popup etc..)
    you can use parent.document.form.field ...

    It has nothing to do with jsp, it can be done with javascript...
     
    daringtakers, Sep 20, 2007 IP
  3. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Can't be done. You can use parent.document or child.document if the "separate window" was a popup of the other or vice versa.
     
    krt, Sep 20, 2007 IP