[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

opener.location.reload() and self.close() not getting executed

Asked by jso2001 in JavaScript, Miscellaneous Web Development, Document Object Model

Tags: javascript, onClick, Close

I have a popup that opens in my application with a submit button defined like this:
 <input name="objpost" value="submit" onclick="document.objpost.submit();opener.location.reload(true);self.close();" type="submit">

My goal is to have the form submitted, close the popup and refresh the page that invoked the popup.  With the definition that I have now the form does get submitted, but the popup does not close and the opener window does not get refreshed.  What am I doing wrong?
[+][-]09/30/09 08:45 AM, ID: 25460101Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/30/09 04:55 PM, ID: 25464880Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/30/09 05:18 PM, ID: 25465016Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625