472,127 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

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 4898
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.