...

View Full Version : closing a child modal window on a submit



orconquest
11-07-2004, 09:58 PM
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?

Kor
11-08-2004, 10:39 AM
Try using a normal (type="button") button to manipulate the modal window...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum