Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    closing a child modal window on a submit

    Hey guys,
    So i want to close the child modal window when the users clicks on the a submit button that is also located in the same child modal window. I am currently using this line to open the modal window.

    var entry_win= window
    entry_win = window.showModalDialog("AddPerson.htm","Add", "dialogWidth=205px;dialogHeight=280px;resizab
    le:yes;dialogLeft:100;dialogTop:100");


    I added self.close()and window.close() in the child modal window, but that just seemed to open another window and load the child modal page again.

    Can anyone help?

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Try using a normal (type="button") button to manipulate the modal window...
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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