Positioning A Modeless Window In Parent Window
Feb 15, 2010I have a Modeless window that I need help positioning in the top left corner instead of the center.
[Code]....
I have a Modeless window that I need help positioning in the top left corner instead of the center.
[Code]....
I am hoping that this is a proper forum to post to. I got an Ajax script from Dynamic Drive called "Dynamic Ajax Content" that loads external pages into a DIV in the Parent page. The effect is much like that of an iFrame. I am loading videos into the target DIV. All of that works fine, but visibility on the parent page seems to be a problem. By necessity, I must(?) place the div close to the bottom of the page. However, when I click on a link that loads the video, I would like to have the parent page "jump" to the DIV with the video.
It is probably easier to visualize this than for me to try to explain it: [URL] For instance, if you click on "The Natural", the video indeed loads, but it is not 100% viewable since it is at the bottom of the page. I tried to emulate an <a name=#jump"> <a href="#jump"> scenario, but since javascript is controlling the generation of the Ajax window, it was to no avail (I am embarrassed to say my javascript skills have eroded a bit!).
[Code]...
I have made a remote control window which opens from its parent. On loading, the remote is positioned relative to the screen using window.moveTo(x,y).
What I would like to happen is the remote control to open docked in a
specific location relative to the parent (opener).
Fortunately, I need this to work ONLY in IE, so at least I don't have to
worry about cross-browser issues.
Does anyone know how to open a window realtive to an anchor in the parent
wiondow?
Basically I'm trying to make a Training Assistant: a window that will
guide the user through the setup process of an online app. However, I
only have the ability to edit the front page of the system.
I need to create a "Train Me!" button on the homepage that will open a
modeless window. Easy enough, right? Well I need the modeless window
to STAY there even after the user starts clicking around on links and
navigating to other pages.
To complicate matters, since I can't edit the other pages, I can't
pass the modeless window any info on what page the user has navigated
to. I need the training assistant to know what page they clicked on
so it can help them with that.
And finally, I can't put the app in any kind of frameset because it
breaks for some reason.
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]...
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 RelatedIm 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:
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?
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 RelatedI 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 RelatedI'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 RelatedPut 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 RelatedHow can I trap, that on closing a parent window the child window should
also get closed.
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>")
i want to change parent window while modal Window opening or opened
my php code is
Code:
<li>
<div class='newsPopUpModal'>
<a href='#'
[Code].....
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.
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...
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.
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.
I'm building a program for webmasters, and I need to have it so that I can have an <INPUT> button that, when clicked, will open up a new window (400x350 pixels) with a list of links. However, when the person clicks one of those links, the window closes, the value of an <input type="text" name="parentdoc" size="8" maxlength="8" readonly> is updated.
How would I accomplish this?
(As I mentioned above, I am very new to JavaScript, so please provide as much explanation and code as possible.)
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.
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 RelatedI have a parent page which I don't have control of. I call my child page from parent page, perform some operations and once I click update child window should close and parent window should be refreshed.Everything seems to work fine except the parent page not refreshing.I tried using window.opener.location.reload(true). But it makes a postback in the parent page and so the values that I update are lost because it makes a postback with the previous values.I tried window.opener.document.locationwindow.opener.document.location. But this doesn't refresh my parent page.
View 2 Replies View RelatedWhen 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?
I'm opening a window with a SWF inside (no HTML, just the SWF) but in the
title bar appears something like
http://www.server.com/myDir/myWeb/Flash/myFlash.swf
i'd like to write something like "Wow!! look thos flash!!!".
Could I do that from the function who launch it??? with something like this?
myWin.title = 'Hello world!!!'
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?