Reload The ASP.NET Page In The Parent Window?

Dec 29, 2010

I am trying to reload the ASP.NET page in the parent window from a javascript in a submodal window. Now I don't want a straight reload as in window.top.location.reload() because the page was previously posted back and thus a warning will be displayed by the browser. I also tried window.top.location.href=window.top.location.href, but that doesn't seem to load a fresh copy of the page. Does it make a difference that the page in the parent window is AJAX enabled and the script that launched the submodal is in an UpdatePanel?

View 7 Replies


ADVERTISEMENT

Reload Previous / Parent Window

Apr 13, 2009

one windown is opening a popup window.. and then the popup window is interacting with user information and then some processing with the use of some more php file.. now at last.. there is a "ok" button which should close this popup window and reload the parent window.. from where it was actually called.. i am trying to reload previous/parent window... using the function

[Code]...

View 2 Replies View Related

Reload/refresh Parent Web Page From An Iframe

Nov 5, 2006

My main browser page has an iframe. Whenever the iframe is reloaded
(updated), I want to automatically refresh the main webpage as well.
How can this be done, preferably using javascript?

View 2 Replies View Related

JQuery :: Open Window On Page Reload?

Mar 16, 2011

I've got the following bit of code:

Code:
$(function(){
$(".facebook").fancybox({
'width': '80%',

[Code]....

I can't get the iFrame to load again. In my window.load function I'm basically trying to reinitialize the fancybox iframe code and then based on the link here: [URL]

I'm trying to trigger it again. The alert appears so I know it's getting to the function but it's not opening up the iFrame.

View 1 Replies View Related

Window.opener Either Blocks When I Referesh The Parent Page Or Opens In New Window?

Aug 11, 2011

I am trying to usw window.open , upload a file in the child window and then referesh the parent window. But once upload is done, window . opener .location.href or opener.location.replace sends a message back but I get a pop up blocker, so if I turn pop up blocker off, it opens in new page. I just want the parent page to refresh on the same window. This works on some employees stations but not on others..I don't know if there are any settings on IE that need to change, I tried everything...weird. does any one done this before?

View 1 Replies View Related

Script Ot Open A Popup Window - And Reload Original Page

Jul 3, 2007

I need a script to open a popup window which contains a php form.
after the form has been submitted or cancelled i need to go back to
the originated page (php also) and reload original page.

do you guys have any simple solutions?

View 1 Replies View Related

Close Window AND Go To New Page In Parent Window

Nov 2, 2004

I have a product that has many features. Clicking on a feature opens a popup window with explanation. There is a js Close Window link in each. All is fine so far.

Now in one popup window there is a reference to a different page of the main website. Is it possible to have a single text link both CLOSE the popup AND go to a new page in the parent window?

View 3 Replies View Related

Want To The Parent Window To Load As A New Page?

Oct 31, 2010

This is what I would like to have happen. Upon clicking an image (button) I would like a new window to open and I also want to the parent window to load as a new page. I've been searching around and found some code. I implemented it and got the new window to open, but the parent window does not change. Here's what I have:

<script language="JavaScript"><!--
function newWindow(file,window) {
msgWindow=open(file,window,'resizable=no,width=1500,height=1000');

[code]....

View 2 Replies View Related

Controling Parent Page From Popup Window?

Dec 11, 2009

For example, I have a page: http://www.cmela.com/zz.phpWhen i open a popup by clicking "Click Here to open popup page" and then on popup window, i wanted it to transfer parent page from making a click on a pop up window.Example is at:http://www.cmela.com/zz.phpopen pop up window, and then by clicking on a link on a pop up window i wanted my parent page to go to www.msn.com

View 2 Replies View Related

Parent.Window.Opener - Current Page Redirected?

Nov 7, 2010

I am looking through the code on a web page and it has the following link in the script tag within the header:
Code:
if (parent.window.opener) parent.window.opener.location='[URL]';

My assumption, and research on the internet would suggest that it is redirecting the user to Google, but I am a bit confused by the 'parent window' and wanted to know a few things, such as:
- Would the current page be redirected, or would a new window open?
- If the page was triggered for a second time, within seconds of the first time, would the redirect still work?
If my understanding of the code is correct, I'm confused as to why it is on this page, as the page contains information, yet is redirecting the user to another page on load.

View 1 Replies View Related

Refreshing Page - Refresh The Parent Window Doesn't Work In IE8?

May 9, 2011

why my simple javascript to refresh the parent window doesn't work in IE8? When the child window closed, it reopen another new window for the page I want the parent window to refresh and nothing happened on the parent window.How can I make it load the page from parent window instead of a new window ??? it works perfectly in other browsers but not IE.

Code:
<script language="JavaScript">
<!--
function rent() {[code].....

View 1 Replies View Related

Reload Parent (https/http)

Jun 12, 2005

I have a nonsecure page that calls a secure popup window to edit credit card info.
This is my popup code.

function popcc(url)
{
newwindow=window.open(url,'name','height=210,width=430');
if (window.focus) {newwindow.focus()}}

This is what I use to close the popup:

<input name="Close" type="button" id="Close" value="Close" onclick="opener.location.reload(); parent.close()">

The weird thing, is that this works when both pages are normal http. When the popup is is https it doesn't work any more. Ideas?

View 7 Replies View Related

JQuery :: Reload() Parent After Closing Popup Div On Firefox 3?

Aug 4, 2011

when i closing popup div on firefox 3 not work well,and this my script for reload parent :

window.location.reload();

it work on firefox 4 but on firefox 3, it doesn't work well...

View 2 Replies View Related

Reload Window After Pop-up Window Closed

Oct 9, 2001

I have a script that when you click on a form button it post the results in a new pop-up window - and doesn't change the origin window. I then create a close.window on the pop-up window to close it. I now want to make it so the origin page is reload/refreshed after the pop-up is closed via the link. I have tried a few things but can't seem to get it to work.

View 1 Replies View Related

Automaticaly Clsoe The Parent Window When The Child Window Opened In Firefox?

Mar 24, 2011

i have this code i need to close the parent.html window when the child window opened, i need the code for that working well in IE and Firefox Parent.html

<HTML>
<SCRIPT TYPE="text/javascript">
function sendTo()
{
window.open('child.html','_blank','resizable=yes,width='+(screen.width-500)+',height='+(screen.height-500)+'');
}
[Code]...

View 2 Replies View Related

JQuery :: Create A Hidden Form Field In A Parent Window From Within A Child Window - Popup

Jun 13, 2011

Im trying to create a hidden form field in a parent window from within a child window (popup). I am trying to use jQuery, but unfortunately the hidden field does not get created.

Code JavaScript:

View 2 Replies View Related

Javascript Popup Window That Stays In Front Of Parent Window?

Jul 20, 2005

I have a couple of utility windows - a calculator and a calendar that popup
from my main window. I would like them to always stay in front of the parent
window until they are shut down with there own close buttons. As it is, when
you click back to the parent window, of course it comes in front of the
child windows. Can I do this?

View 4 Replies View Related

Getting Data Back To Parent Window Field From Popup Window

Apr 7, 2007

My problem is that ..... I have to select Data from Popup Window and get that Data back to my Parent window's textarea field..

View 2 Replies View Related

Capture Child Window Close Event In Parent Window?

Feb 1, 2010

I have an HTML page where I am opening a child window using window.open. the child window is something like yahoo.com. I want to refresh the parent window when the child window is closed.

View 1 Replies View Related

Window.opener.location - Set The Parent Window(main Browser)

Nov 13, 2011

I'm using window.showModalDialog but having an issue trying to set the parent window(main browser). I open modal window A which is then opens modal window B, top of modal window B onload I do window.opener.close()". My issue now is when i'm finished with B I set parent window(main browser) to a new url with window.opener.location. So my problem is modal window A the parent has been closed so window.opener.location will not work.

View 3 Replies View Related

Trigger Action In Parent Window When Child Window Closes?

Jun 25, 2009

Put a link on my page that will open an external site (over which I have no control) in a pop-up window. When the user closes the pop-up, I want my original page to redirect to another page. The difficulty I'm having is that I can't add any code to the page in the pop-up as it's not my site.

View 4 Replies View Related

Location Reload On Window Close

Jul 23, 2005

I'm popping a window to a page with a different dns than the parent, and
i want the opener's location reloaded when this window is closed.

With Mozilla it seems that all the opener's methods and properties are
protected because the dns are different. A security exception
(permission denied) is thrown every time i try to exec an
"opener.location.reload()" from the pop up window.

An alternative would be catching the window closing from the opener, but
i don't know how this could be done.

View 2 Replies View Related

How Hard Can It Be To Reload The Main Window?

Jul 20, 2005

I'm trying to reload a frame from a pop-up, but really cannot figure
this out.

Within my index.htm file, I make a link to call a pop-up frame with a
javascript function that calls the following code from an external
javascript source file, dynamically created with PHP...

View 3 Replies View Related

Reload Text And Image In Same Pop Up Window

Mar 23, 2006

I am building a web site and am trying to streamline the way the site works. I have a list of companies that each will have a link to a new page. What I want to do is make it open a single pop up for all companies. In this pop up there will be one image and a few lines of text. Therefore, when a viewer clicks on one company's link and then clicks on another it will load the second company's info in the same pop up. Code:

View 4 Replies View Related

How To Reload An Iframe From A Popup Window

Jun 4, 2004

I am a total javascript newbie and have been pulling out my hair trying to figure out how I could reload an iframe inside the main browser window from a popup window.

What I am trying to do is have a system where people can upload pictures from the popup and then veiw the pictures they have uploaded as they upload them in the main window.

View 1 Replies View Related

Center Window On Screen Without Reload?

Mar 15, 2006

I am using a script to open a new window and center it on the screen (to expand a photo). The problem is that when you click the link, it opens the new small window in the top-left corner, then moves it to the center.

Is there anyway to have it just load in the center? It doesn't look professional moving mid-load.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved