Refreshing To A New Page Via Popup Window Close

Dec 8, 2005

I was curious if such a thing is possible, I've seen it done before, but not exactly sure how that would work. Would it have something to do with the window.close (); function?

View 7 Replies


ADVERTISEMENT

Popup Question: On Popup Have One Button To Close And Another To Close And Then Redirect To Another Page

Jul 20, 2005

As per the rather long subject, I would like to (well, my boss would like me to...) on a popup have one button to close and another to close but then redirect to another page.

View 4 Replies View Related

Can I Focus A Popup Window Without Refreshing It?

Jul 20, 2005

The crux of the problem is I only know if the popup *has been* opened,
but not if it *is* open. Therefore, the script doesn't know whether to
simply refocus, or whether to popup a fresh window.

Are these the only solutions?
* handle onerror in some creative way
* hidden frames

BTW, I do have the luxury of ignoring non IE 5.5+ browsers on this
project..

View 4 Replies View Related

Creating Popup Windows - Add A "Close Window" Button On Survey.html Page

Mar 13, 2010

I read about window object and specifically about creating popup windows. The code below produces a popup window when a link is clicked:

Code JavaScript:
var Survey =
{
init: function()
{
var surveyLink = document.getElementById("survey");
Core.addEventListener(surveyLink, "click", Survey.clickListener);
},
[Code]....

I would like to add a "Close Window" button on survey.html page and when that button is clicked, the window would close. How do I do that? I know that I should use (reference to popup window).close(), but how and where do I attach even listener to that button?

View 1 Replies View Related

Refreshing The Parent Window When A Popup Closes Using Javascript??

Oct 13, 2003

i have a popup from the parent window which allwos the user to add in new location. when the lcoation has been added succesfully. then thewindow closes and the parent gets refreshed. In particular, just the location listbox gets updated with the new value. the location listbox i generated from the database using asp.

View 2 Replies View Related

JQuery :: Close A Modal Dialog Without Refreshing The Parent Page?

Jan 5, 2011

I have created a modal dialog. When I close it the page refreshes automatically but in my scenario the page should not do so. The code I am using is:

$(document).ready(function () {
$("#addaccount").dialog({
height: 'auto',
width: 'auto',

[Code]....

Here I am opening a div tag inside a modal dialog. There is a form submit button. When I click the submit button the modal dialog closes and the page refreshes automatically.

View 2 Replies View Related

Refreshing A Page From Within A Popup

Feb 3, 2006

I'm working on this system, where an admin can manage articles and stuff. The editing, adding and deleting of articles is done from within a Javascript popup. When the new article is added, the admin can hit a "close this window"-link to return to the admin-page, which contains a list of all articles.

This works fine, however, when returning to the list-page, the new article hasn't been added to the list, because there was no page refresh. Is there any way to invoke a page refresh from within the editing-popup?

View 1 Replies View Related

"window.close()" Won't Close My Popup Window In Most Browsers

Apr 7, 2010

- I have a button on my Flash site that opens an HTML page in a popup window. In Flash, I open the new window using Actiosnscript 2.0:

- Within the popup window are links to other HTML pages. They all open in the same window. I've been using the following to create the links in Dreamweaver:

- On each page, I have a "Return to Main Menu" button that should close the popup window. To do this, I have been using:

- The problem is that it works differently in each browser, and I can't even get it to consistently close the window in most browsers:

Internet Explorer = popup message appears, asking "Are you sure you want to close this window?" or something similar; window closes after clicking "Yes."

Safari = Only closes if I'm on the original HTML page. If I click on any of the other links (note that these all open in the same window), those pages' "Return to Main Menu" buttons cease to work. However, if I keep clicking "Back" until I get to the original page, it closes.

Opera = Button actually works for each page.

Firefox & Chrome = Does not close the window at all.

I looked into it and saw that others have used a window.opener to solve similar issues. But, since my popup window is opened using Flash/AS2, I need to find a way around it.

I've tried preceding "window.close()" with "window.opener=null" (i.e. -onClick="window.opener=null; window.close()"), but I don't think I'm doing it right because it still doesn't work.

I've also seen others use codes that involve functions and variables, but it is beyond my current coding knowledge to implement this. Like I said, I'm sort of new at this.

View 5 Replies View Related

Refreshing A Parent Page From A Child Popup

Feb 10, 2006

I use this code in a popup to refresh the parent browser. It works fine
as long as the user actually clicks on this link but does not work in
cases where the user closes the child popup through the Windows X
(close) button. Any way to accomodate this also?

View 3 Replies View Related

Refreshing Main Page From Popup With Javascript

Sep 16, 2001

I have a normal web page that contains a link.

When the link is pressed a javascript popup window occurs asking the user for a choice.

The popup window then closes and I want also for the original page to be refreshed.

So how do I do the refreshing is my question.

I realise the reload command is relevant, but am unsure on how to tell the pop up window to refresh the original page.

View 1 Replies View Related

Cannot Close Popup Window After Submit

Jan 22, 2007

I have a popup window that opens from a page on my website.
This popup is a form with several fields.
Upon submit button it redirects to a server side ASP page which writes
all data to the DB.

I would like the popup to close immediately after the submit button is
clicked, and data is saved, (or cancel button) - but this does not
happen.
The popup window remains open, even though I have a "return false;"
after window.open in the onclick event.

What am I missing?

<a href="myurl.asp"
'title','toolbar=no,width=700,height=600'); return false;">post a
note</a>;

View 4 Replies View Related

Waiting For A Popup Window To Close

Jul 20, 2005

I am currently having problems with Popup windows in an application I
am writing. I have a page, which opens a Popup window to a Perl Script
on another server.

Because of this, I cant access the Parent's DOM to execute a function
on the main page from the popup. I need to execute a script in the
Main window once the popup window has finished its process.

I have tried setting a loop that checks if the popup is still open,
which should work in principle.... however it hangs both Browser
Windows.

View 2 Replies View Related

Redirect / Close Popup Window

May 4, 2011

I am trying to do two things. I have PDF files but the user has to click on the icon and a contact form will come up in a pop-up window. That window has a form and once the form is completed and properly validated, I want the pop-up window to automatically close and go to "white_papers.com?download=1". It will do everything but it only goes to white_papers.com. How can I get it to go to the entire URL including "?download=1"?

View 6 Replies View Related

Target Blank And Close Popup Window?

Sep 18, 2011

I have a popup window that has a "link" inside it, which needs to have a target=_blank but when ever clicked in IE, it stays inside the same window.I tried all of the following, none work

<a href='http://www.myurl.net' onclick='window.close();' target='_blank'>
<a href="http://www.myurl.net" target="_blank" onClick="javascript:window.close()">
<a href="http://www.myurl.net" target="_blank" onClick="javascript: setTimeout(window.close, 10);">

View 10 Replies View Related

Close Popup When Lanching Window Unloads

Jun 10, 2002

I have this page that a user uses to upload a PDF. I want a small popup to come up when they hit the upload button to promt the user to wait. This part is fine and works but I need the popup to close when the upload is complete. The way I have aproched it is to have a function that pops the window up: Code:

View 1 Replies View Related

Checking For New Or Popup Window And Activating Close Button

Jul 23, 2005

Is it possible for me to make visible a close button if the active
window is a popup window or a new window (other than the main window)?

What I mean is this:

If the present window is the main window, then the close button should
not be visible on the page. Otherwise, the close button should be made
visible and active (i.e. can be clicked to close the window).

View 2 Replies View Related

Close Popup Window After Submit Then Redirect To Parent

Aug 18, 2011

as the title says, "close popup window after submit then redirect to parent". how do i do that? i google it and i saw that some people are using the following code:

window.close();
window.opener.location.reload();

The problem is, i dont know how to use and where them.

View 6 Replies View Related

Button To Loose Focus After Close Of Popup Window?

Oct 21, 2009

I have an html button that calls & open another browser window on the onmouseup event, but once I close the popup new browser window my button has focus & is like selected.

I want it not to be selected or clicked or has focus, how do i loose the focus after close of popup window?

onmouseup="window.open("

View 1 Replies View Related

Close Internet Explorer Window Without Warning Popup

Nov 15, 2009

I want to close an internet explorer window without the warning popup. Im running ie 8 how would i do that cause when i use window.close() function it pops up with that warning.

View 5 Replies View Related

Open A New Window And Close The Current Popup In One Click?

Nov 21, 2010

Here's what I have so far, it doesn't work:

HTML Code:

I have a popup that submits a link. After the link is submitted, I want the user to be able to close the popup and go to the submitted link in one click. How can I do this.

I have my reasons for using popups, it's hard to explain. Please don't tell me how bad popups are, I know they're bad.

View 2 Replies View Related

Close Popup From Next Page

Jul 20, 2005

I wrote an ASP-page which allows friends to upload a datafile which will be processed and stored in a database. Because large files take some time to process I want to open a popup 'Please wait, processing' with some fancy graphics. So, onSubmit -> check form and open popup if correct. When data is written into the database (and summary page has finished loading) I want to close the popup.... although I named it winDialog (winDialog = window.open(...)) the new page tells me it can't find this popup ( if (window.winDialog) { winDialog.close() } ). Can anyone tell me what's wrong? Maybe I'm doing things wrong. Or could you perhaps put me in a right direction...

View 4 Replies View Related

Click Anywhere On Page To Close Popup - Div

Aug 20, 2009

I have this script which I found bits-and-pieces and put together to display and close the popup. The problem is I couldn't figure out a way to close the popup by clicking anywhere on a page. I can close by clicking on the link but that's not what i want. I want to be able to click anywhere on a page to close the popup.

View 3 Replies View Related

Close Popup And Refresh Parent Page

Nov 8, 2005

here's what i need to do:

1. open popup
2. on submit -- run the asp to process results and then
3. close the page
4. refresh the paretn page


how can I do this? can anyone help me?

View 2 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

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

When Try To Close Browser In IE On The Main Page - Get An Popup With An Error - An Error Has Occured On The Script On This Page

Apr 14, 2009

I'm having a problem on a particular site I am working on.

The URL is [url]

The problem is that when I try to close the browser in IE on the main page I get an popup with an error which says: "An error has occured on the script on this page"

Do you want to continue running scripts on this page?

"Yes" or "No" (Buttons to Click)

I have to click the 'Yes' button about thirty times before the browser will finally close. Does anyone have any idea what this is?

Here is the source code.

Code:

View 2 Replies View Related







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