469,331 Members | 4,340 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

refreshing parent window after closing child window

19
Hi,

I am using javascript to close my child window and after closing child window, i want to refresh parent window.

So, this is the script function i am using,

Expand|Select|Wrap|Line Numbers
  1. <script language="JavaScript">
  2. function closeAndRefresh()
  3. {
  4. window.opener.location.href="#{facesContext.externalContext.requestContextPath}/main/billing/billRecords.jsf";
  5.             self.close();
  6. }
  7. </script>
  8.  
This is the commandbutton code i am using,

<h:commandButton value="OK" onclick="closeAndRefresh()" />

So, How to resolve this......

Thanks,
Vinutha
Apr 20 '07 #1
3 4851
acoder
16,027 Expert Mod 8TB
So what exactly is the problem?
Apr 20 '07 #2
Vinutha
19
So what exactly is the problem?

I want to refresh parent window after closing child window.

Thanks,
Vinutha
Apr 20 '07 #3
acoder
16,027 Expert Mod 8TB
I want to refresh parent window after closing child window.

Thanks,
Vinutha
What you could do is run a function on the parent page which refreshes after a few seconds or even one second using setTimeout, then close the child window. Perhaps you could check that the child window is indeed closed before refreshing the parent window.
Apr 26 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by jb61264 | last post: by
2 posts views Thread by John Dalberg | last post: by
1 post views Thread by hashya | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.