Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
refreshing parent window after closing child window
Old 04-20-2007, 10:23 AM refreshing parent window after closing child window
Novice Talker

Posts: 10
Trades: 0
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,

<script language="JavaScript">
function closeAndRefresh()
{
window.opener.location.href="#{facesContext.extern alContext.requestContextPath}/main/billing/billRecords.jsf";
self.close();
}
</script>

This is the commandbutton code i am using,

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

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

Thanks,
Vinutha
vinutha is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-20-2007, 11:38 AM Re: refreshing parent window after closing child window
etech355's Avatar
Average Talker

Posts: 29
Location: Maryland
Trades: 0
Try changing your window opener line from

window.opener.location.href="#{facesContext.extern alContext.requestContextPath}/main/billing/billRecords.jsf";
to

window.opener.location.reload()

and see if that works.
__________________
Eric

Please login or register to view this content. Registration is FREE
etech355 is offline
Reply With Quote
View Public Profile Visit etech355's homepage!
 
Old 04-21-2007, 02:12 AM Re: refreshing parent window after closing child window
Novice Talker

Posts: 10
Trades: 0
Hi etech355,

Thanks for your reply.
I tried refreshing the parent window by using this code,
window.opener.location.reload(). But still its not working. I am using IE7. Can you tell if there is any other alternative for this.

Thanks,
Vinutha.
vinutha is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to refreshing parent window after closing child window
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.61918 seconds with 12 queries