Popup Window Where Main Window Is Maintained In Background?

Apr 8, 2011

I have the code below in my popup window which currently brings up a blank page in the background as the main window. Instead I want the popup to come up but the original page I left is in the background as the main window. Does anyone know how I can do that with the code I currently have.

<html>
<head>
<title>JavaScript Popup Example 3</title>

[code]....

View 21 Replies


ADVERTISEMENT

Keep Main Window In Background While Popup Window Comes Up?

Apr 11, 2011

I have a popup window that comes up when a user doesn't have access to a certain page within my site. The problem is when a user clicks on something the popup window comes up but the bigger sized window of that popup comes up in the background as well. I am trying to have my popup window come up while the original page I clicked from is still focused/seen in the background. This is the code I currently am using, can anyone help me with what I am missing. I have a back button but I won't need that if I want to maintain the original page in the background. Instead I will use a close button.

Code:
<html>
<head>

[code]....

View 1 Replies View Related

Form Opening In The Main Window/ Simeltaneiously Closes Popup Window

Jan 8, 2004

I have a popup window which has the search form in. What I want to do is for the popup window to close once the form is submitted, and to post the form data to a page on the main window.

Is anyone able to advise. As the main page is dynamic, it is not possible to give the page a name.

View 4 Replies View Related

Send Value From Popup Window To Main Window

Oct 15, 2003

I am building a CMS and will have an Image browser built with it. When articles are added the will be able to open up the image browser when they find the image they want to insert I would like to send it(and ID from my database) into that textarea where the article is in(in the main window). So basically sending a value from popup to the main window(textarea). Is there a way i can do it.

View 3 Replies View Related

Pass Value From Main Window To Popup Window

Feb 15, 2005

how to pass a value from radio button in a window to a popup window using asp javascript?n in the popup window,there is a textfield to enter data to search from database.. the value from the textfield then is used to generate report.

View 1 Replies View Related

Popup Controlling Main Window?

Feb 26, 2009

I have one page with<input id="calendar" name="calendar" value="" /> <a href="open popup">...</a>The popup opens page with calendar days. Every day is<a href="javascript: setDate('2009-02-26')">26</a>What to insert in the setDate() function to return the selected date to "calendar" input field, wich is in the other (main window), not in the popup?

View 1 Replies View Related

PopUp AND A PopUnder For Same Main Window?

Apr 7, 2009

I am very new at this - and have found code everywhere for pop ups and popunders, but I need both in the same place. So - I am on a main page with a link. If the user clicks the link they get a popup window (it is a specific url). When the user exits out of the popup, I want the popunder to go under the main window they were looking at (not the popup window)

If I am in my main window, I have an href link to click for the popup.html window. This works fine, and I tried to put the code into the popup.html to load the popunder upon exit. What a disaster. It loads on TOP of the main window because of course it is trying to popunder the popup.

Focus is never returned to the main window. Is there any one that has any ideas on how to do this? I have looked at it for days and cannot figure it out - but like I said, I am very, very new at javascript.

View 6 Replies View Related

Cannot Rewrite Main Window From A Popup I Made

Jul 23, 2005

I'm having a problem rewriting a window with a popup I made. I'm using
Debian Woody with Mozilla 1.0. I can make the popups, but I cannot rewrite
the original window with the new information gathered from the popup. Can
someone please make some suggestions. I've got most of my information from
an old copy of the Rhino book.

View 1 Replies View Related

Popup Closes Main Window Problem

Jul 20, 2005

I have a simple page on my freebie account site that opens a popup
window running index.asp on another site of mine. The code on the
freebie hosted server is below. What I'd like to do is have the
freebie hosted page shut down once it's opened up the child window.

View 1 Replies View Related

Passing Variables From A Popup To Main Window

Jul 24, 2004

I have two PHP scripts. The popup script (calendar.php) is linked from the main navigation of the website. When it is clicked, the calendar popups up and the dates are linked. For example; the 24th July 2004 would read: events.php?day=24&month=7&year=2004

However, I require this information to be passed back to the MAIN window so that it can be displayed in a full screen.

View 6 Replies View Related

How To Make A Popup Window Appear Behind Main Page?

Feb 16, 2003

Can somebody tell me how I can make a popup window appear behind the main browser window by modifying the script below to do this? I would like it so the popup will load but they won't see it until they close the main window.

Code:

<script language="JavaScript" type="text/javascript">
<!-- Begin
var popupWin
function openWindow() {
popupWin = window.open("http://www.domain.com", 'win', 'menubar=yes,status=no,toolbars=no,resizable=yes,scrollbars=yes,width=800,height=600')
}
// End -->
</script>

View 3 Replies View Related

Detecting Popup Menu Closure From MAIN Window?

Sep 20, 2010

when a user clicks on a link, a new window opens. what I want to do is that if the user closes that popup but click on that same link again, the window should open..

Code:
<script language="javascript">
var winOpen = "";

[code]....

View 1 Replies View Related

User A Popup Message Without Reload Of Main Browser Window?

Mar 15, 2011

I'm looking for nice solution to handle file downloads. The problem with classic link in <a href="file"> is that in case of missing file, the main browser window is reloaded with 404 error, but I'd like to present to user a popup message without reload of main browser window.

View 3 Replies View Related

Window.opener.location - Set The Parent Window(main Browser)

Nov 13, 2011

I'm using window.showModalDialog but having an issue trying to set the parent window(main browser). I open modal window A which is then opens modal window B, top of modal window B onload I do window.opener.close()". My issue now is when i'm finished with B I set parent window(main browser) to a new url with window.opener.location. So my problem is modal window A the parent has been closed so window.opener.location will not work.

View 3 Replies View Related

Call Main Window From Popped Up Window?

Jan 20, 2010

In my main window, I create a popup window. Is there a way to bring the main window back to the foreground (make the main window the focus window again) from the popup window using JS? Like from a link or a button?

View 1 Replies View Related

Script Display A Popup In The Middle Of The Browser Window - Graying Out The Background - Page Is Displayed From The Top

Aug 19, 2011

I've copied and customized a script to display a css popup in my little website. The script should display a popup in the middle of the browser window, graying out the background, Everything seems to work fine except that at the end of the script, the page is displayed from the top. This means that if you click on the popup link from a position down in the page, you'll miss it because you will be taken to the top of the page, where you can't see it.

This is the HTML and CSS code:

HTML Code:

And the js:

Code:

I've been debugging with alert boxes and everything seems to be fine until the script ends execution. Then the user is brought again at the top of the page...

In my final site the only thing I would like to show in the popup is a Flash movie.

Do you know any workaround? I would even implement a completely different solution if I knew which...

By the way: At this stage I am using Chrome but I would like my solution to work in any browser, that will the next issue.

View 2 Replies View Related

Print Pop-Up Window Not Main Window

Feb 26, 2006

I'm creating a Pizza order form. Part of my project includes the ability to print a receipt which I have created successfully as a pop-up window; however, I have the window.print() function in that part of the code and it will not print the pop-up receipt, but rather the main window. Code:

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

Open A Popup Window From A PHP Site And Pass In Some Parameters To Use In The Pop Up Window

Sep 23, 2010

I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup window. All pages are local and in the same folder. The id of the input box is 'ddutykey'. The name of the new window would be showduty.php if possible.

View 3 Replies View Related

Submit A Form In Popup Window To Opener Window

Oct 11, 2006

I have a form that is in a popup window. I need the form to submit to the opener window. Is is possible to do that? The opener window is the main window so it is does not have a name and there are no framesets.

<form action="something.php" method="post" target="????">
I'd like to use window.opener in the target but that's JavaScript...

I know somebody has done this before and has the code.

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

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







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