SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    malaysia
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    pass value to popup window

    Sorry! May I know how to pass my value, insert the <td></td>, to the popup window's text field?
    after that, can I pass the value that i change oledi, back to the page that open the popup window?

  2. #2
    SitePoint Evangelist SpaceFrog's Avatar
    Join Date
    Jan 2005
    Location
    Outerspace
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when you open the popup assing it to a variable

    PHP Code:
    mypopup=window.open(....) 
    then form the mother window you can reach the elements from popup with:

    PHP Code:
    mypopup.document.getElementById('Obj').... 
    then from popup back to mother

    Code:
    windo.opener.document.getElementById('myinput')

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    malaysia
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SpaceFrog
    when you open the popup assing it to a variable

    PHP Code:
    mypopup=window.open(....) 
    then form the mother window you can reach the elements from popup with:

    PHP Code:
    mypopup.document.getElementById('Obj').... 
    then from popup back to mother

    Code:
    windo.opener.document.getElementById('myinput')

    sorry, I not understand. I assign my popup window... just like

    PHP Code:
    mypopup=window.open(....) 
    but i not understand your other code... can you explain more further?
    Thank... and I am in a Table.... still using getElementById? how?

  4. #4
    SitePoint Evangelist SpaceFrog's Avatar
    Join Date
    Jan 2005
    Location
    Outerspace
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    mypopup.document.getElementById('mycell').innerHTML="hello"
    with

    Code:
    <td id="mycell"></td>


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
  •