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
ADVERTISEMENT
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
View Related
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Nov 16, 2010
I am using following code
Code JavaScript:
window.open("company.aspx?m=I", "Company", "width=600,location=no,status=no,height=450,resizable=no,scroll=no");
HTML Code:
<a href="javascript:void(0)" onclick='window.open("company.aspx?m=I", "Company", "width=600,location=no,status=no,height=450,resizable=no,scroll=no");'>
My problem is that when popup window is open then parent window is getting autorefresh what should i do to stop autorefresh of parent window
View 4 Replies
View Related
Feb 3, 2005
On my parent page I have a form with an input text field containing the value of a Customer name (pulled from a database). I also have an image link that, when clicked, will launch a popup window that performs a database lookup and displays all Customer names.
What I'm looking for is a javascript solution to do the following:
1. Each Customer name in the popup window be a hyperlink that, when clicked, will populate the Customer input text field on the parent page (thereby removing the text field's current contents).
2. then, automatically close the popup window.
View 3 Replies
View Related
Jul 28, 2010
I want to know, if it is possible, how to reflect popup checkbox changes on correspondant checkbox in parent window. Main windows contains a list of thumbnails, each one with a checkbox. Clicking on a thumb, a popup window is opened containing a bigger photo beside a checkbox. If the user checks/uncheks it I want the thumbnail checkbox in parent window to be changed in the same way (and onclick tasks to be performed). To achieve this I am using cookies and onClick -> parent.reload.
View 8 Replies
View Related
Sep 15, 2005
I have one page with <select> list in it, which opens a popup with
another <select> list. Those two list are linked... When I select
something in the list that is in popup window and confirm the selection
(by pressing button), I call a function that fills the "parent" window
and forces popup to close. All this is accomplished by directly
accessing another list:
for(var i = 0; i <= selLength; i++){
name = parent.window.opener.listValues.options[i].text;
value = parent.window.opener.listValues.options[i].value;
self.document.form1.itemList.options[i] = new Option(name, value);
}
And this doesn't seem to work with IE. With Firefox is OK.
Any ideas how to make it work with IE?
View 5 Replies
View Related
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
Dec 26, 2009
Is it possible to Copy data from a <input> box the the main windows (the input is opened in a pop-up). I've seen date-time pickers can do that, but can't find the function!
View 3 Replies
View Related
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
Jun 23, 2010
Inside of a page, there is a iFrame, which houses WYSIWYG editor.I'm trying to pass data (passedString: html, inline css, text ...) to a popup.When I pass same string to same div with id="idx" located on a page, where iFrame is located, it receives it without problems.Problem appears, when I try to pass string to popup.
View 1 Replies
View Related
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
Sep 14, 2006
I have a popup window that the user opens, and then after say 10 seconds I want it to redirect the parent window that opened the popup to another page.
As im sure you know, the usual way of redirecting after a set time is:
<meta HTTP-EQUIV="REFRESH" CONTENT="10;URL=http://newsite.com/newpage.html">
But how can I put that in the popup, but then get the parent window to redirect, rather than the popup?
View 1 Replies
View Related