SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot jstraathof's Avatar
    Join Date
    Jan 2002
    Location
    Netherlands
    Posts
    155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Help with catching var from popup

    Could anyone tell me how to fetch a var
    from a popup page after exiting the popup?
    (Like people select something in the popup like
    a image, it returns the certain value of
    an form object to the parent window.)
    The parent must use that var.

    Thanks in advance !

    Jeroen

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in the popup

    <body onUnload="top.opener.window.varName = document.formName.elementName.value;">

    This will create a global variable, varName, in the parent window.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





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
  •