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


ADVERTISEMENT

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

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

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

How To Make A Popup Window Appear Behind Main Page?

Feb 16, 2003

Can somebody tell me how I can make a popup window appear behind the main browser window by modifying the script below to do this? I would like it so the popup will load but they won't see it until they close the main window.

Code:

<script language="JavaScript" type="text/javascript">
<!-- Begin
var popupWin
function openWindow() {
popupWin = window.open("http://www.domain.com", 'win', 'menubar=yes,status=no,toolbars=no,resizable=yes,scrollbars=yes,width=800,height=600')
}
// End -->
</script>

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

Javascript Popup Page On Page Load

Sep 8, 2007

I am trying to do a popup window, which will load when the page loads. Using the onLoad in the <Body> tag. However it doesn't seem to be working. Also when the popup loads there will be a form which the user selects an option and the form is sent to a email address with the answer chosen and then the popup closed. Code:

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

Popup Controlling Main Window?

Feb 26, 2009

I have one page with<input id="calendar" name="calendar" value="" /> <a href="open popup">...</a>The popup opens page with calendar days. Every day is<a href="javascript: setDate('2009-02-26')">26</a>What to insert in the setDate() function to return the selected date to "calendar" input field, wich is in the other (main window), not in the popup?

View 1 Replies View Related

PopUp AND A PopUnder For Same Main Window?

Apr 7, 2009

I am very new at this - and have found code everywhere for pop ups and popunders, but I need both in the same place. So - I am on a main page with a link. If the user clicks the link they get a popup window (it is a specific url). When the user exits out of the popup, I want the popunder to go under the main window they were looking at (not the popup window)

If I am in my main window, I have an href link to click for the popup.html window. This works fine, and I tried to put the code into the popup.html to load the popunder upon exit. What a disaster. It loads on TOP of the main window because of course it is trying to popunder the popup.

Focus is never returned to the main window. Is there any one that has any ideas on how to do this? I have looked at it for days and cannot figure it out - but like I said, I am very, very new at javascript.

View 6 Replies View Related

Automatically Open Popup Without Refreshing Parent?

Aug 6, 2011

I have the need to create a popup after a delay. The problem I'm getting is that the parent page is refreshing automatically from the action of creating the popup. I don't want the parent page to refresh!

This is what I currently have:

$popupScript = '
<script language="JavaScript">
setTimeout("window.open('index.php?do=renew','Popup1','toolbar=0, width=500, height=500')",' . $delay . ');
</script>';

The page is in php, so that's why I have it as a string, which I later pass to a template page.

This would simply be:

<script language="JavaScript">
setTimeout("window.open('index.php?do=renew','Popup1','toolbar=0, width=500, height=500')",6000);
</script>

... if it was placed straight into the HTML. Incidentally, it's included into the HTML HEAD area, not the body, as the original source of the script suggested: [URL]

$delay is the delay before the popup opens, in microseconds (so 6000 would be 6 seconds).

What can I do to have the same delayed auto-popup functionality, but without it automatically refreshing the parent page where the above code resides?

As some background to what I'm achieving: The issue with not wanting the parent page to refresh is that each time it does, the login session gets extended. The popup itself (which I already have working ok) provides a 'continue working' function, or close and refresh the parent is nothing has been done after a short period.

View 6 Replies View Related

Cannot Rewrite Main Window From A Popup I Made

Jul 23, 2005

I'm having a problem rewriting a window with a popup I made. I'm using
Debian Woody with Mozilla 1.0. I can make the popups, but I cannot rewrite
the original window with the new information gathered from the popup. Can
someone please make some suggestions. I've got most of my information from
an old copy of the Rhino book.

View 1 Replies View Related

Popup Closes Main Window Problem

Jul 20, 2005

I have a simple page on my freebie account site that opens a popup
window running index.asp on another site of mine. The code on the
freebie hosted server is below. What I'd like to do is have the
freebie hosted page shut down once it's opened up the child window.

View 1 Replies View Related

Passing Variables From A Popup To Main Window

Jul 24, 2004

I have two PHP scripts. The popup script (calendar.php) is linked from the main navigation of the website. When it is clicked, the calendar popups up and the dates are linked. For example; the 24th July 2004 would read: events.php?day=24&month=7&year=2004

However, I require this information to be passed back to the MAIN window so that it can be displayed in a full screen.

View 6 Replies View Related

Detecting Popup Menu Closure From MAIN Window?

Sep 20, 2010

when a user clicks on a link, a new window opens. what I want to do is that if the user closes that popup but click on that same link again, the window should open..

Code:
<script language="javascript">
var winOpen = "";

[code]....

View 1 Replies View Related

User A Popup Message Without Reload Of Main Browser Window?

Mar 15, 2011

I'm looking for nice solution to handle file downloads. The problem with classic link in <a href="file"> is that in case of missing file, the main browser window is reloaded with 404 error, but I'd like to present to user a popup message without reload of main browser window.

View 3 Replies View Related

Search Mysql Database In Popup And Select Variable To Pass To Main Form?

Aug 7, 2010

Basically the user would see a button on a form that would be something like "add contact"...then a window opens that shows a search window (want to implement something like [URL]) and it would show all the contacts available in the contacts table...then the user selects the contact to add (via a link).

I think i could get it this far, but how would i then pass that $row to the main form so that i can use the fields from that $row in the contacts table on my form?

View 1 Replies View Related

Attatched JavaScript Canceled Out The Main JS

Dec 21, 2006

This problem is for IE 6 only! Strangely it works in IE 7 and FF.

I have 2 JavaScripts on the frontpage of this site both doing 2 totally different things!
One is for the drop down menu and the other is for speech bubbles. I put the JavaScript for the speech bubbles in a seperate file and attatched it. Code:

View 6 Replies View Related

Dynamically Change The Font Family Of The Loaded Html Page Of The Main Page?

Nov 4, 2010

On my webpage, I dynamically create an iFrame when a button is pressed, then load a html page from within my own domain into the iframe, based on what html page is loaded into a variable. My question is, can I dynamically change the font family of the loaded html page from the javascript of the main page? My code to create the iframe is:

function setSubTxt(){
var par = document.getElementById('parentDiv');
par.innerHTML = '<iframe src="'+subTxt+'" style="width: 375px; position: fixed; height: 365px; left: 400px; top: 145px; border=none;" name="subIframe" frameBorder=0></iframe>';
frames['subIframe'].window.location=subTxt;
document.subIframe.document.body.style.fontFamily = "Arial";
[Code]....

the variable "subTxt" has the url of the html page to be loaded (always on the same domain). The code: document.subIframe.document.body.style.fontFamily = "Arial"; was my attempt to dynamically change the font, but it didn't work. Also, it should be noted that there is no font family set in the html pages which would override this.

View 6 Replies View Related

JQuery :: Incorporate Two Files - If The Main Js Is On The Page Part Of The Page Does Not Work?

Jun 22, 2011

I am trying to incorporate two javascript files (using jQuery) and they are creating a conflict.If the main js is on the page part of the page does not work. If I do not include it my menu and some related features do not work correctly.One code is long so here is the link to it: *I removed Link* (this is the main code for the menu etc)The other js is:

$(document).ready(function(){
Engine.Initialize();
if( !$('body').hasClass('index') && !$('body').hasClass('homepage') ) {[code]....

View 2 Replies View Related

Loading The Menu Item Page In The Center Of Main Page?

Mar 22, 2009

I'm designing a web page, Having a banner on top, then a search option following it.There is a menu item list below it on to the left.And the content of the links of those menu item should get loaded in the center of the page.And a footer having some copyright info.All these are in div tags. The problem is when i click on any menu item it should be loaded in the center div tag.Ive tried using Iframes but there is a scrollbar coming only in that area of center div tag.I don't wan't this to happen.Based on the size of the html page to be loaded the div tag size should increase, and so the whole page.Have tried using Ajax but not working.

View 1 Replies View Related

Countdown To Page Refresh - Put A Short Page Of Copy On Each Address Along With Keywords Before Redirecting The User To Main Site

Aug 22, 2011

Our company own a lot of domains and want to put a short page of copy on each address along with keywords before redirecting the user to our main site. I have been able to get the page to load the main site after the desired time using this code in the head...

<META HTTP-EQUIV="refresh" CONTENT="40;URL=http://webaddress.com/">

That works perfectly, I am now trying to display a countdown timer from 40 seconds down to 0, and on 0 redirect the user. Saying something like "You will be redirected in XX seconds". Is there anyway of doing this? I've been searching google for the answers with no luck and can only seem to find timers that countdown to a set date.

View 13 Replies View Related

JQuery :: Nesting A Page Inside Of Main Page?

May 23, 2011

When I load a page into an existing page I think the div's are not nested properly therefore the javascript is not working correctly. What's happening is ALL the div's on the second page are showing. I just need the first div to show then when you click on the <li> element the other div shoes. It works fine when the page loaded by istself. Here is my code:MAIN

PAGE:<
div
id

[code]....

View 1 Replies View Related

Form Opening In The Main Window/ Simeltaneiously Closes Popup Window

Jan 8, 2004

I have a popup window which has the search form in. What I want to do is for the popup window to close once the form is submitted, and to post the form data to a page on the main window.

Is anyone able to advise. As the main page is dynamic, it is not possible to give the page a name.

View 4 Replies View Related

Popup Window Where Main Window Is Maintained In Background?

Apr 8, 2011

I have the code below in my popup window which currently brings up a blank page in the background as the main window. Instead I want the popup to come up but the original page I left is in the background as the main window. Does anyone know how I can do that with the code I currently have.

<html>
<head>
<title>JavaScript Popup Example 3</title>

[code]....

View 21 Replies View Related







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