Click to See Complete Forum and Search --> : plz help me to solve this problem


ankush.bindra
November 23rd, 2005, 06:31 AM
hello dear,

i m developing a Web Based application.in that when i select a customer name from a dropdown list in web page
'Quoattion.aspx'. at that time i'll open a web page 'customerDetail.aspx' in a dialog window by using

showModalDialog('customerDetail.aspx','','').

now depends upon data present on dialog window ,we have two options (two buttons). first if we want to continue to this

Quotation then this dialog window will be closed (by pressing one button) and we continue with previous page 'quotation.aspx'

in prevoius window. second option is that if we want to block this quotation then first of all the dialog window will closed

and then the web page open in previous window will be refreshed and new blank interface ie web page 'Quotation.aspx' will be

reloaded in current window (by pressing second button).


now my problem is that. i m able to close the dialog window (by using self.close() on one button) but i m not able to reload

the web page 'quotation.aspx' in main window when i close the dialog window.

so plz tell how i'll perform two operations on click of one button in JavaScript.
(1) close the dialog window
(2) reload the web page in current main window.

waiting for ur reply......

Ankush

PeejAvery
November 23rd, 2005, 02:59 PM
Just call the parent windows name.

parent.WINDOWNAME.location.reload();

bigBA
November 24th, 2005, 08:41 AM
well, so the originating window has to have a name... and i don't think that it has one :)

but you just can user "opener" instead of peejavery's WINDOWNAME

note: you have to do this before you close the dialog window.