Open.window Reloads Parent Window

Jul 23, 2005

When I do the following line in Netscape, the popup loads as it should,
but the parent window usually, but not always, reloads as well.

<a href="#"
onClick="window.open('/cgi-bin/displayimage.cgi?/store/demo/image.jpg&YOUR+PRODUCT%27<b>S+NAME+GOES',
'fullimage', 'WIDTH=420,HEIGHT=405,status=0')">

The original window should not reload, but is, and I have tested it with
both version 4.72 and 7.02, and they both do it. IE does not do it.
The big problem is that the original window has security built into it
so it must be called from the right referring url, but when Netscape
reloads this parent window, it neglects to send the original referring
url, so the original page is replaced with an error page as soon as the
above link is clicked.

Is there any workaround for this, where either Netscape will not reload
the original page, or if it does, at least not lose the referring url?

View 10 Replies


ADVERTISEMENT

Change Parent Window When Modal Window Is Open?

Apr 14, 2009

i want to change parent window while modal Window opening or opened

my php code is

Code:
<li>
<div class='newsPopUpModal'>
<a href='#'

[Code].....

View 1 Replies View Related

Window.open Affecting Parent Window

Jul 23, 2005

I'm using window.open to create a secondary window, and everything is
working fine with that. My problem is that as soon as that window is
opened, the parent window scrolls to the top of its page. So when the
user closes the secondary window, they've lost their place in the
parent document.

Is this normal behavior for window.open? Is there a quick way to
prevent it, or is it more likely a problem with my Javascript?

View 4 Replies View Related

How To Keep Child Window Open When Parent Closes?

Jul 23, 2005

I have a closed box system which opens an html page. The page closes by the
system. I have access to the html page. I added code to open a child window
from this page. However when the parent window closes, the child closes
too. Is there a way to keep the child window open? Yes keep it orphaned.

View 2 Replies View Related

OnClick - Hide Parent Window And Open New

Apr 30, 2009

I am looking for a script that on click of a button Hides the parent window and open a new window/layer.

To get better understanding please click on following link [URL] and than click Furniture Image...

View 2 Replies View Related

How To Open Local File In Parent Window

Mar 23, 2011

How do you open a local html file in the parent window (asp.net)?

View 1 Replies View Related

Child Window Close Event - Opening Another Link In A Separate Window Using Window.open()

Jan 29, 2010

I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.

View 4 Replies View Related

Window.open & Accessing Parent Variables' Values

Jul 23, 2005

I have got a following problem with using javascript:

I have a HTML page with pictures' thumbnails. After clicking on any
thumbnail, I would like to open a new window with the original size
picture. In the main window with thumbnails, I have got following
important stuff: Code:

View 1 Replies View Related

Code That Will Make The Link Open In The Parent Window?

Nov 24, 2010

Instead of using window.open, which I understand opens a new window, is there a code that will make the link open in the parent window?

View 7 Replies View Related

A Way To Monitor Child Window Across Opener Reloads ?

Jul 23, 2005

Is there a way to monitor a newly opepend child window with opener,
even when the page keeps reloading ?

Say window A opens window B and gives it a name/handle "myWindow".
At this point anywhere in window A, we could say
myWindow.location.href to find out where the child is.

But what if someone was to take window A to another site, and than
return using history button, OR reload it completely.

upon load the var myWindow would get executed again, and it seems like
the handle would be lost. I tried to see if there was a
window.children collection that might still hold window B in its
subset, but was not able to find a way thus far.

View 1 Replies View Related

Dynamically Setting Display Property Reloads The Window

Jul 11, 2011

I am currently encountering a problem with setting "display" property from "none" to "block":

Browsers will refresh itself when the display property is changed; this causes the element to display then suddenly disappear after the page reload. Do you guys have an idea what I can do to avoid it?

I tried using jquery's show command, css command with setting display to block, and pure javascript method like document.getElementById("theId").style.display="block".

View 3 Replies View Related

Code - Void Window.open - Link Would Open In The Same Window?

Feb 7, 2009

I have this piece of code which is opening link in new window:

How to change this code so link would open in the same window?

Probably I should change this part: javascript:void window.open

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

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

Capture Child Window Close Event In Parent Window?

Feb 1, 2010

I have an HTML page where I am opening a child window using window.open. the child window is something like yahoo.com. I want to refresh the parent window when the child window is closed.

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

Trigger Action In Parent Window When Child Window Closes?

Jun 25, 2009

Put a link on my page that will open an external site (over which I have no control) in a pop-up window. When the user closes the pop-up, I want my original page to redirect to another page. The difficulty I'm having is that I can't add any code to the page in the pop-up as it's not my site.

View 4 Replies View Related

Closing A Parent Window The Child Window Should Also Get Closed?

Apr 2, 2006

How can I trap, that on closing a parent window the child window should
also get closed.

View 1 Replies View Related

Call Parent Window Function From Child Window?

Jan 18, 2010

I have created and opened a child window called "checkwin" and have written some data to it. If the data is valid, I want the user to click on the 'CONFIRM' button on the child window, at which time I want the "submit()" function for the form on the parent window to be executed. If the data is invalid the user clicks on 'MODIFY' and I want focus to return to a field on the parent form. However, when I click on the "CONFIRM" or "MODIFY" buttons on the child window, nothing happens. Here is the code:

checkwin.document.write("</td></tr><tr><td align='right'><input type='button' value='CONFIRM'
onclick='opener.document.personnel_form.submit()'></td><td></td><td><input type='button' value='MODIFY'
onclick='opener.document.personnel_form.first_name.focus()'></td></tr></table>")

View 1 Replies View Related

Close Child Window When Parent Window Closes?

May 3, 2009

I'm trying to create code to close the child window I'm creating if the parent window is closed. Here's my code so far:

function openWindow() {
var newWin = window.open(); // open the new window
newWin.document.write('<h1>Child Window</h1>

[Code]...

The above openWindow function is used in this event: <input type="button" name="btn" onclick="openWindow()"value="Open a new window" />

I can generate the new window fine. I just can't close it if the parent window is closed.

View 1 Replies View Related

Pass Array From Child Window To Parent Window?

Jun 22, 2009

My scenario is like this.

1. Click on button and pop up child window.

2. Select multiple checkbox and submit array which send back to parent window and value store in a hidden variable.

i manage to do pop up child window, pass textfield value to parent window. But it cant send php array to parent window. Please help. I'm not good in js. code...

View 3 Replies View Related

Focus On Parent Window After Closing Child Window?

Sep 24, 2009

I'm having trouble with Safari. After i close a popup it does not focus on the parent window. I have been looking around and i think its this sort of thing i need 'javascript:window.opener.focus()" target="_self"' but tbh i'm not in anyway a javascript whizz, so im a little confused.

Here is my current code to close the child window

document.write("<input name='close' class='button popup' type='button' value='Close Window' onclick='window.close()' id='close'>"

So i need to somehow, add in the .opener thing to that.

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







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