SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member balaji_A's Avatar
    Join Date
    Mar 2004
    Location
    India
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help needed for popup window

    I have ont html file names "FirstPage.html" containing one text box & a button.
    On click of the button a window must be opened containing an html file "SecondPage"
    which contains some check boxes with value & OK button.
    The user will select some of the check boxes and say Ok , that window must be closed
    and the selected values must be loaded into the text box of "FirstPage.html" .

    If u don't understand the above description i will give u one example.
    In yahoo mail if u want to insert some address while composing there will be a link
    "Insert Address". On click of the link results u a window containing all the address as
    a check box fashion.After selecting the address and on click of a button "Insert Address"
    the window will be closed & the address will get loaded in corresponding text fields.

    How this can be possible in javascript.

  2. #2
    SitePoint Evangelist
    Join Date
    Sep 2003
    Location
    San Diego, CA
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    window.opener

    you can call it like window.opener.document.forms[0].textboxname.value=document.forms[0].textbox2.value. That would be on the popup window. It translates as follows: the page with the link to open this window, change your first form's textboxname to the value of the popups textbox2 value. Change it accordingly.

  3. #3
    SitePoint Member balaji_A's Avatar
    Join Date
    Mar 2004
    Location
    India
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is working fine. Thanks for u'r reply.


Bookmarks

Posting Permissions

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