Popup To Redirect Parent

Feb 24, 2010

I have seen threads all over about this but I am very new to JS and can not figure it out still. So what I have is a popup containing a button. Once you click on the button I need the popup to close and the parent page to redirect to a specific link.

View 1 Replies


ADVERTISEMENT

Close Popup Redirect Parent To New Link?

Sep 17, 2010

how to redirect the parent window (below the popup) to a new address when a user clicks a link in a pop? And the pop up should close. This javascript refreshes the parent window and closes the pop up but it does not send the user to a new page in the parent window. onClick="window.opener.location.reload(true); window.close();" I don't know much about javascript.

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

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

How To Onclick Pop-up And Still Redirect To Parent?

Jan 15, 2005

When A users clicks a link that connects to page1.htm I would like to have a pop-up spawn from that link(onclick) however still redirect to page1.htm. The result being the user is now on page1.htm and still viewing the pop-up that spawned from the link.

Is this possible? If so please provide examples and if its possible to so this without using javascript that would be great. If not javascript is fine.

View 2 Replies View Related

Prevent Iframe Redirect To Parent Window

Jun 12, 2009

if i try iframe'ing this site [URL] it doesn't work :( , it automatically redirects the site to the parent window. this may be due to the some script code in that site :confused: ...

View 1 Replies View Related

Redirect Page To Open In Parent Frame

Apr 5, 2007

What I'm trying to do is make it so when a visitor or a search engine tries to view a page outside of the parent frame it reloads that particular page inside the parent frame. All the scripts I've tried WILL redirect the visitor back to the parent frame, but NONE of them will then load the previously viewed page into the 'main' frame. I don't want visitors to have to navigate through the site to find the particular page they were viewing.

I have seen this script before but I can't remember which site was using it, also without a redirection to the frames the site won't display properly and navigation would be difficult. Code:

View 1 Replies View Related

IFrame-name.location Problem Redirect Parent Window

May 5, 2006

After executing the iFrame-name.location=url (which worked fine by way,) there is a very undesirable event; the parent window also gets redirected to the same url.:mad: I am calling this function from a click event on an Image object. I have tried everything from return(false); to window.event.cancelBubble = true; nothing stops the parent window from navigating. The interesting thing is, if I hit the Back button it goes back and still redirect the parent window automatically, over and over.

The odd thing is I have identical code in another project and I never had problems.

Here is a portion of my javascript func:

function clicked_SubmitScreensBtn() {

var url = "ovExplorer.asp?Action=show&QData=BLABLABLA";
var iFrDoc = document.frames("ifrmOVExplorer").document;

iFrDoc.location.replace(url);

window.event.cancelBubble = true;
return(false);
}

And this is my iFrame in the HTML of the parent window:

<iframe name="ifrmOVExplorer" id="ifrmOVExplorerID" src="blank.htm" style="Z-INDEX: 10; VISIBILITY: visible; POSITION: absolute; LEFT: 22; TOP: 380; WIDTH: 306px; HEIGHT: 280px;" marginwidth="1" marginheight="1" align="left" border="0" frameborder="0" scrolling="no">
</iframe>

View 1 Replies View Related

Close Fancybox On Submit And Redirect Parent Page?

Aug 31, 2011

I'm using Gravity forms for a fancybox popup here- hit the 'JOIN' button and you'll see the popup. What I need to do is close the popup when the submit button is hit and then redirect the parent page to a specific url. I cannot wrap the submit button itself in a link because I'm using Gravity Forms. Is there another way to do this?

View 2 Replies View Related

Popup Window.opener Redirect

Jan 31, 2008

I'm creating an html-based kiosk for a museum exhibition. It's a page-turning exhibit, so visitors to the museum will be able to turn the pages of a document. The monitor will be a touch-screen and the main browser window will be set to fullscreen, so the user will not have access to any browser features.

All the pages are built and work. My problem is that I want as many users as possible to see the homepage when they approach the kiosk (not the page the most recent user was last looking at). So I'm working on a way for the main window to redirect itself back to the homepage.

The solution I'm trying to make work is this:

When any page is opened (besides the homepage) a timer script runs. When the timer reaches 0, it activates a script that creates a new popup window that says, "Click here to continue reading from the current page." If someone clicks the popup, it goes away and leaves the main page beneath. If no one clicks the popup, it also goes away, but in this case, I need the main window to redirect to the homepage--this is the part I can't figure out.

I think (and I'm new to this so I'm probably wrong) I want an onunload action related to the popup window, so that when the script closes the popup window it will access the main window and change its location. Can this be accomplished with a window.opener in the popup script?

I've tried to do this by putting on onfocus action in the body tag of the main page, to redirect when the main page is put in focus. But in this case, the onfocus action executes when the main page originally loads--I need it to execute when the page is "refocussed." Code:

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

Show A Popup That Is Not Blocked And Then Redirect The User To A Page?

Apr 1, 2009

How can I show a popup that is not blocked and then redirect the user to a page?

View 1 Replies View Related

Jscript Popup Parent

Oct 2, 2003

I have a dynamic page, it's a calander so called calander.asp

When the page loads it opens a popup window (filters.asp) containing a form that a user can filter different dates with different filters.

function openpopup(){
var popurl="filters.asp"
winpops=window.open(popurl,"","width=400,height=600,scrollbars,menubar,")
}

openpopup()

What im trying to do is get the when the user fills in the form.
it submits to the calander page, (the parent?)
<form name="form" method="post" action="calander.asp" target="_parent">

i want the popup to remain intact. when the form is sumbitted it opens a new window behind the filters.asp popup and doesn't filter the correct results.

View 1 Replies View Related

Popup To Mimic Parent Window

Nov 1, 2007

Wondering how one would go about creating a popup window that would exactly copy the size & location of the parent window. I am guessing that you would combine two functions, one to assign size & location of parent window to JS variables; the next to open the popup incorporating
those variables. I'm sure i can find snippets on the web. would there be a simpler way?

View 4 Replies View Related

Passing Value From Popup To Parent Window

Jul 1, 2009

All three values are received at the JavaScript function. Have problems in translating and passing it to the parent. Trying to do the following from popup

<a href="#" onclick="javascript: post_value('<%=key%>', '<%=val%>', '<%=callingElement%>');"></a>
function post_value(partNumber, partDesc, callingElement){
opener.document.caseLineupDetailForm[productNum[callingElement]].value = partNumber.replace(/`/g, "'");
self.close();
}
[Code]....

View 1 Replies View Related

Refresh Parent When Popup Get Submitted

Nov 19, 2010

I'm using submodal-1.6 for popup. When the popup closes I wanted parent page to refresh.I've tried the following

window.opener.location.load();
window.opener.location.load(true);
location.load();
window.parent.location.reload();

All works for IE, but when coming to mozilla ,firefox the refresh is a step delayed, i.e when I open my popup to add an itme to my cart on parent page ,for the first time it does not show anything , but when I try to add another item , the first one shows.

View 1 Replies View Related

Sending Information From Popup To Parent

Jul 5, 2011

I want to send data from a form on a popup to a form on its parent page. I have checked several approaches, but none of them is working with me. In the end, I've just tried to use an existing example from the web (http://www.plus2net.com/javascript_t...dow-child3.php) but even this is not working locally after copying the code from there, while it's working well when I try it directly on the page.

I have absolutely no clue what I am doing wrong. But after this experience I have my doubts, that it's not about the code. EDIT: I just found out, that this problem is specific for chrome, if I try this page on the web, it's working on chrome and firefox. But if I try it locally, it's just working on firefox. Does anybody have an idea how this could happen?

View 3 Replies View Related

Popup Page To Navigate Parent?

Dec 6, 2009

How can I use a pop-up page to navigate the parent page?

For instance, on my homepage, I have something like "Click here to choose your location". This should open up a page, with a list of option that I can choose to navigate the homepage!

View 1 Replies View Related

Parent/Child Popup Window

Aug 1, 2003

I have a web page w/ a popup window.

Here isthe problems that I'm trying to solve when I want the user to close the popup window via a "Close Window" button.
fyi the popup window contains a survey.

If parent window is open & minimized
> Then I can't bring to focus on the parent again, it stays minimized.

Is there an easy way to maximize the parent again?

View 1 Replies View Related

Refresh Parent When Popup Closes

Nov 18, 2010

I'm using submodal-1.6 for popup. When the popup closes I wanted parent page to refresh.I've tried the following

window.opener.location.load();
location.load();
window.parent.location.reload();

All works for IE, but when coming to mozilla ,firefox the refresh is a step delayed, i.e when I open my popup to add an itme to my cart on parent page ,for the first time it does not show anything , but when I try to add another item , the first one shows.

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

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

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

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

Blocking Parent Window Until The Popup Is Closed?

Jan 19, 2010

I'm trying to force my users to close a popup window before they can return to the Parent window. I more or less want to "lock" the parent window and force the user to fill in the info on the popup and hit submit, which in turn will close the popup and then allow the user to continue working on the parent window.

View 1 Replies View Related

Popup Window And Parent Is Deactivated / Disabled

Dec 22, 2009

I have a popup which do some operations, parent window should do some operations too but after the popup finishes there r many ways to avoid that can check with database or session or .. etc but i guess if there is a way with JScript or Javascript to make the parent window disabled or deactivated ( as in alert:javascript u can do nothing with parent till u press OK )

View 5 Replies View Related







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