Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 22nd, 2009, 03:44 AM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript

Hello, Friend i have problem with Refresh Parent Widnow and close popup with javascript function

I use
self.close();
if (window.opener && !window.opener.closed) {
window.opener.location.reload(1);
}

code works properly
only when parent form didn't have any asp control
but it didn't work if there is any control then browser shows message window for Retry and Cancel

i didn't want this alert / message Please help me


yogesh
 
Old April 22nd, 2009, 04:56 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
Try it

Code:
 Response.Redirect(Request.Url.ToString(), False)
 Response.Redirect(<PageName on which you wan to redirect>)
 
Old April 22nd, 2009, 05:02 AM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript

Hi, pratikasthana

i want this code in javascript (Client side)


Thanks
Yogesh
 
Old April 22nd, 2009, 05:06 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default

hi,
r u not using the code behind code in that page ?
 
Old April 22nd, 2009, 05:09 AM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i want this code in clientside only
 
Old April 22nd, 2009, 05:12 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default

hi,
i had same problem in my code ,then i use this code to solve the problem
if you got any solution in javascript ,let me know also
 
Old April 22nd, 2009, 06:40 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

If you try to reload/refresh a page that posted values you're bound to get the warning, try
Code:
window.opener.location = window.opener.location;
.
__________________
Joe
http://joe.fawcett.name/





Similar Threads
Thread Thread Starter Forum Replies Last Post
stop current javascript function using javascript sakthi Javascript 3 June 2nd, 2008 03:30 PM
how can i do this in javascript ? jjk2 Java Basics 0 May 17th, 2008 08:11 PM
JavaScript sumith ASP.NET 2.0 Basics 2 October 2nd, 2007 09:59 PM
"text/javascript" and "javascript" rupen Javascript 1 June 24th, 2005 07:20 AM
new to javascript shankhan Javascript 2 April 26th, 2005 05:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.