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
ADVERTISEMENT
Oct 2, 2004
On the main window, you click a link and it pops up another window, where you can do some stuff, and ultimatly you get a variable that has some value to it. Now, when the user clicks "All Done", I want that variable value to be become the value of a hidden input "attachments" back in the main window.
Code:
<script language="javascript">
function sendUploads() {
var newValue = ƈ'
parent.document.addform.attachments.value = newValue;
}
</script>
The main window's form is called "addform" and the hidden input is called "attachments".
View 1 Replies
View Related
Apr 1, 2009
I have a page contained in an iframe. The page contained in the iframe shows videos all the time.Each video has an id that changes when a new video is played.I need to be able to catch this changing id in the page that has the iframe (the parent page) and that is hosted in a different server from the contained page.The only languages that can be used in the contained page are javascript, ajax and jquery
In the parent page you can use these languages + php.
I'm not posting the contained page code just because, believe me, it's humongous,full of variables and functions from other files and modules.The only thing needed there is a variable, myid, that stores the new id when a new video is played.Then I have to post, send, throw ... etc. myid and after that catch it in the parent page, remembering that myid's value changes when a new video is played and that.I have to get that new value at all times.I have to get the value of the playing video id to do things like changing the background of the page depending on the video played or showing a webpage depending on the video played ... and so on.
View 2 Replies
View Related
Mar 16, 2010
I need to send possibly many values from a popup child window to a parent window. Say:
List of Fruit:
Apple [Add]
Banana [Add]
Each click of add adds the fruit into a input text box, on the parent page. [URL]I could make a form for every fruit and send it back this way. It is troublesome, but can be done.
View 1 Replies
View Related
Jan 24, 2011
I want to open a aspx page as popup at a button click with some text box values being passed toit. Also need to display data in a grid in popup and then when a row is selected send that data back to parent .
View 1 Replies
View Related
Mar 22, 2008
Do u know of any free javascript script that will popup as a bubble with some information on it when I click on any form element in a page?
I can show you an example of what I want:
View 3 Replies
View Related
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
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
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
Oct 29, 2010
I have a HTML form containing two text box controls in it and a submit button. When a user enters information in those two textboxes and click on submit, the information is sent to a function in Javascript. In the javascript, the information from those textboxes is stored in a javascript variable. The problem is as follows:When I am inputting string text in the html text boxes and in the javascript when I am trying to print those values, it is giving me out an error saying NaN. However when i input integer values in the text boxes it is printing those numbers. Is there a conversion that I have to do for the string to be printed. I am new to Javascript and need your help. This is a basic code of Javascript. Below is the code that I have.
<html>
<script type = "text/javascript">
function square(form)
[code]....
View 2 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