Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-07-2004, 09:58 PM   PM User | #1
orconquest
New to the CF scene

 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
orconquest is an unknown quantity at this point
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?
orconquest is offline   Reply With Quote
Old 11-08-2004, 10:39 AM   PM User | #2
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
Try using a normal (type="button") button to manipulate the modal window...
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:50 PM.


Advertisement
Log in to turn off these ads.