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


ADVERTISEMENT

Way Of Passing Variable From Parent Window To Popup Window

Jun 27, 2002

I need the most efficient way of passing a variable from a parent window to a popup window.The reason i say "most efficient" is because i currently do it like this from the parent:[code]But this is inefficient because at times it randomly alerts "undefinded".Anyways, can someone tell me a more fail safe way to pass a var to a popup so that i will be able to access it 100% correctly.

View 1 Replies View Related

JQuery :: Create A Hidden Form Field In A Parent Window From Within A Child Window - Popup

Jun 13, 2011

Im trying to create a hidden form field in a parent window from within a child window (popup). I am trying to use jQuery, but unfortunately the hidden field does not get created.

Code JavaScript:

View 2 Replies View Related

Javascript Popup Window That Stays In Front Of Parent Window?

Jul 20, 2005

I have a couple of utility windows - a calculator and a calendar that popup
from my main window. I would like them to always stay in front of the parent
window until they are shut down with there own close buttons. As it is, when
you click back to the parent window, of course it comes in front of the
child windows. Can I do this?

View 4 Replies View Related

Getting Data Back To Parent Window Field From Popup Window

Apr 7, 2007

My problem is that ..... I have to select Data from Popup Window and get that Data back to my Parent window's textarea field..

View 2 Replies View Related

Inserting Value From Popup Window To Parent Window Select

Sep 21, 2004

I am trying to insert the value of a variable gathered from a popup window as an option in a <select> menu on the main window. This is the code I have so far:

Code:
var newOption = document.createElement("option");
newOption.value = '<?=$userfile_name?>'
newOption.appendChild(document.createTextNode('<?=$userfile_name?>'));
select.insert(newOption);

How do I do the rest? I just want to add this new value to the end of the list.

View 1 Replies View Related

Pass Values For A Popup Window To Parent Window

Jan 19, 2003

how I can populate the value of an input field on a parent window from a selected item (of a form - listmenu) on a pop-up window? Basically, I need to pass the value of one form to another form located on a different page...

View 1 Replies View Related

Passing Data From Parent Window?

Nov 13, 2011

I have a script that opens up another window and a task gets executed, all of that is fine, but is there anyway that the parent window (the window that gets open) can pass data to the window that opened it? (I pretty much want to enable a button on that page)

View 4 Replies View Related

Passing Value From Parent To Child Window Created By Pop Up

Dec 5, 2006

Passing value from parent to child window created by Pop up.

View 2 Replies View Related

Passing Variable Into Parent Window Textbox

Jun 25, 2005

i have a form that will pass the value of a child window listbox choices to a parent window, and also the hidden value (via a variable) of the choices in the child window listbox will appears also in the parent window textbox when i hit the submit button in the child window, and the values of the listbox are taken from a acess database, the form works very well, except when i added the following line to my child window: PHP Code:

<SCRIPT TYPE="text/javascript" SRC="filterlist.js"></SCRIPT>

the hidden value in the listbox of child window wont appear in the textbox in the parent window, when i added the above line.

the above line function as a filtering to my list in the child window, and it is the main part of my code. when i removed the above line, the passing of values to parent window will works fine, except that the filtering function will not work anymore, but i want it both to work, but have no luck. Code:

View 1 Replies View Related

Passing Data From Parent To Child Window

Sep 28, 2006

I am trying to pass user data from a parent window to a child window. I read somewhere that if i want to pass data as soon as child window opens i need to add a pause for the form elements to load. I am using the code snippet below.objf.form_parent.text1 is a text field in the parent window and newWindow.document.test.text1. is a field in child window. Can anyone help what I am doing wrong. Code:

View 2 Replies View Related

Passing Properties From Parent Window To Child?

May 25, 2010

In javascript I need to pass a variable or function or something from the parent window to the child window. There will be a URL in the parent that needs to be passed into the child so when you click on the link in the child window it pulls in the link from the parent's js. Like this (ignore my rubbish javascript as I'm just writing it to explain my point!)...

Parent window var variableName="http://www.google.com" (send variable to child window)

Child window (pick up variable from parent window and drop it into the link's URL)
<a href="(variableName);">google</a>

This might seem like a crazy way of doing things but it's totally neccasery in the project I'm working on for various reasons.

Not sure if its a variable it needs but either way it needs to be in the js somewhere in the parent and the child needs to read it within the link. Everywhere I've looked on the internet shows how to do this with forms etc but I can't make it work for a URL.

View 5 Replies View Related

Passing Control From Child To Parent Window?

Mar 12, 2010

I am opening a pop up in a new window (window.open) . I have no control on the code of the pop up. Its a third party pop up (twitter). Now that generates a callback url and I can specify that.My problem is the callback page is loaded on the pop up window. I want that window to close and have the call back page loaded on the parent window.

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

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

Passing Variables To A Popup Window

Aug 31, 2005

<a href="view_details.php"
onClick="window.open('view_details.php?id=<?=$row['id'];?>&sname=<?=$row['sname'];?>')">
details</a>


Have got this so far but need to get the width and height set. Cannot seem
to get he syntax right.

View 1 Replies View Related

Passing A Reference To The Popup Window

Nov 23, 2005

Is there a way, I could pass the reference to a pop up window to
another function?

Basically, this is what I want to
var win= window.open("x.htm".....)

SetValue(win,"txtName");

//-------------------------------------------
function SetValue (win, ctlID)
{
var obj=win.getElementByID(ctlID);
ctlID.value="Hi";
}

View 1 Replies View Related

Passing Variables To Popup Window?

Feb 28, 2009

I want to pass variables to pop up window.How can i do this.

The code to pop up new window is as follows

<td id="add" bgcolor="#FFFFFF" width="80" height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a href="http://172.16.0.145/zm/index.php?view=monitor "

[Code].....

basically i want to pass values of "xcoord" and "ycoord" to pop up window.

View 1 Replies View Related

Passing Values From 1 Opened Pop-up Back To Parent Window?

Feb 18, 2010

I've been struggling on how to make this work.I have a problem in Javascript when it comes to passing of value in a input type field.

page1.html
<html>
<head><title></title></head>
<form action="" method="post>

[code]....

View 5 Replies View Related

Passing Values From 1 Opened Pop Up Back To Parent Window?

Feb 17, 2010

I have a problem in Javascript when it comes to passing of value in a input type field.

page1.html

Code:
<html>
<head><title></title></head>
<form action="" method="post>
<input type="text" name="weight" value=""><a href="hw_calculator.html"

[Code]....

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

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

Unable To Popup Parent Window Autorefresh?

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

Insert Text From Popup Window To Parent

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

Passing Parameter To A Popup Window Without Using Querystring

Jul 20, 2005

I have a search page im asp.net. the user enter the criterias in
textboxes and dropdownlists and on submit i want the results to be
displayed in a popup window.

so the easy way is to pass the criterias in a querystring to the new
window. but if it's possible i don't want to use query string.

in asp, i could use the folowing:
i open a temporary blank window, on load I take the values of the search
page using the window.opener and submit them to the server.
Unfortunately this can't be done in asp.net coz window.opener isn't
working.

so is there a way to do that ? or the only way is to pass the parameters
in a querystring ?

View 3 Replies View Related







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