Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Popup window unable to write text in the parent window

Popup window unable to write text in the parent window

Scheduled Pinned Locked Moved C#
question
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ram1974
    wrote on last edited by
    #1

    Hi, I am using a simple popup application in which I popup a window and the window will write the value into the parent window text box. child.aspx function Fillvalue() { var txtDefault = document.getElementById('txtChild'); window.opener.document.form1.txtDefault.value = txtDefault.value; window.close(); } default.aspx function OpenPopup(parentID) { var winHeight = 600; var winWidth = 830; var url = 'frmChild.aspx?'; options = 'menubar=0,resizable=1,status=0,scrollbars=1,height=' + winHeight + ',width= ' + winWidth + ',left=' + ((screen.width-winWidth)/2) + ',top=' + ((screen.height-winHeight)/2); window.open( url, '', options ); } This is working fine and returning me the desired value. which I entered in the child(popup) window. but, when I am using window.opener.document.form1.txtDefault.value = txtDefault.value; in my other application the above is not working. I am very much confussed, what might be wrong, any solution please.... :confused::confused: Ram

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups