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


ADVERTISEMENT

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

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

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

Get Value From Popup Window To Parent Window

Sep 6, 2005

I have a website which has a popup window (this only opens when the user
chooses to open it). In the popup window I have a <select> control which
lists a selection of "classes". Each class has a description and a class_id
(stored in the value attribute of each option). The user will then select a
class from the drop-down list.

What I want to do is have a control in the parent browser window which can
store the class_id and the description that the user has selected in the
popup window.

Any suggestions as to what control I should use in the parent window and
more importantly how I get the value from the popup window (this must be
client side code as the user will have entered other values into the form in
the parent browser window)?

View 4 Replies View Related

Popup Window From Parent Window?

Mar 18, 2009

In parent window, while submitting form, popup window is called. In child popup window, parent window is forced to go invisible through code. But sometimes it is not working.Aim is to inactive all elements in parent form or invisible parent form while child window (popup) is opened. After closing popup, parent form should be in visible state.

In parent Window: (userinfo.php)
<script type="text/javascript">
<!--

[code]...

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

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

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

Copy Text From Input (in Popup) To Parent Window

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

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

Data String From Parent Window To Popup Not Passed

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

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

Popup Auto-redirecting Parent Window After 10 Seconds....

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

Send Value From Select In A Pop Up To Parent Window

Jan 21, 2002

how would I send the value from a <select> box that's in a pop up opened with window.open() back to the parent window, and put it in a text field?

View 10 Replies View Related

Inserting Text From One Window Into The Form Of Another Window

Jan 13, 2003

I need to insert some text (keywords) into a searchform of another window. I assume this is possible via the window.opener, but I would be grateful for some hints.

View 1 Replies View Related

JQuery :: Select OS Popup Window

Jul 20, 2011

I have a page that generates an operating system popup window. How do I select this with jQuery?

For example, on page load, a window pops up a Microsoft Windows dialog. How do I select this popup that the page has generated?

View 6 Replies View Related

Automaticaly Clsoe The Parent Window When The Child Window Opened In Firefox?

Mar 24, 2011

i have this code i need to close the parent.html window when the child window opened, i need the code for that working well in IE and Firefox Parent.html

<HTML>
<SCRIPT TYPE="text/javascript">
function sendTo()
{
window.open('child.html','_blank','resizable=yes,width='+(screen.width-500)+',height='+(screen.height-500)+'');
}
[Code]...

View 2 Replies View Related

Window.opener Either Blocks When I Referesh The Parent Page Or Opens In New Window?

Aug 11, 2011

I am trying to usw window.open , upload a file in the child window and then referesh the parent window. But once upload is done, window . opener .location.href or opener.location.replace sends a message back but I get a pop up blocker, so if I turn pop up blocker off, it opens in new page. I just want the parent page to refresh on the same window. This works on some employees stations but not on others..I don't know if there are any settings on IE that need to change, I tried everything...weird. does any one done this before?

View 1 Replies View Related







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