Change Image From A Child Window?
Mar 1, 2009how can i change the image say when someone clicks on it, then when they click a new image. it gets changed.
View 3 Replieshow can i change the image say when someone clicks on it, then when they click a new image. it gets changed.
View 3 Replies<div class="userbox posts" id="pst146996">
<div class="imgholder">
<img alt="Chris Hardin" src="http://codebix.com/bp/1633.png">
<div style="margin-left: 20px;" class="commentbox">
[code]....
i want already select .postlike in $(this) now i want to select the tagh1 who is in .commentboxelements.i want to change the h1's inside text 1 to 2 so i write the code
$(this).closest('.posts').children('.commentboxelements center h1').html('1');
i try this but it's not worked anyway how i can do this.
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 RelatedI have a parent window that pushes a new window object onto an Array
with the following code :
OpenChild()
{
//totalNumWindowsCreated is global
totalNumWindowsCreated = totalNumWindowsCreated + 1;
childWnds.push(window.open(link, "child" +
totalNumWindowsCreated,"dependent"));
..
..
..
}
This pops up a new window with every call. In the child window I call
a parent function onbeforeunload, appClose() :
function appClose(){
if (window.opener && !window.opener.closed){
window.opener.CloseChild(getQueryString("application"));
}}
This is in my frameset tag of the child code :
<frameset ... onbeforeUnload='appClose()'>
The window.opener.CloseChild() function is called perfectly when I have
one child window open, but as soon as I create another child window
both of the open child windows don't ever call it. They do both go
into the onbeforeunload appClose() function, but do not call the
window.opener.CloseChild() function inside of this routine.
Anyone have any ideas why when I have two child windows open I can't
access the window.opener functions?
I have tried taking each new window out of the array and used the
following code in CloseChild() :
CloseChild()
{
//win and totalNumWindowsCreated are both global
totalNumWindowsCreated = totalNumWindowsCreated + 1;
var win = window.open(link, "child" +
totalNumWindowsCreated,"dependent");
..
..
..
}
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 pop up a window and then do stuff(set flags) when the content of the new window is done loading. For this I am trying to detect the window.onload of the pop-up child window but so far I am unsuccessful. I believe my problem is that the URL of child window is on different domain, than the one of the opener(parent) so that the window.onload is not being called. Though this may change, at the moment I do not have access to the code for the page I'm opening up in the pop-up. Im pretty new to web development.
[Code]....
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:
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 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'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 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 RelatedIs-it possible to write in a mother window from a child window?
Like this:
Parent.document.write(............................ ................)
Iam using mozilla firebird. I have three popups displayed at one point of time...if I close one the other two goes hidden....could you please suggest me the reason for this behaviour and how to overcome it.....
While I opened......these child windows(popup)...from the main window
I have given "dependent=yes" in the window.open statement.
The sameway I want to close the Child windows opened from the parent
window using IE. I use IE 6.0.
I am trying to pop up a window and then do stuff(set flags) when the content of the new window is done loading. For this I am trying to detect the window.onload of the pop-up child window but so far I am unsuccessful. I believe my problem is that the URL of child window is on different domain, than the one of the opener(parent) so that the window.onload is not being called. Thought this may change, at the moment I do not have access to the code for the page I'm opening up in the pop-up. Im pretty new to web development.
Heres my js code
Code:
//globals
var popupHandle = null;
var openingWindow = false;
function popWindow(URL){
[Code]....
Note: The whole reason why I am doing this is because if its the first time I am clicking on the button that will open this pop up window and I click it repeatedly very quickly, a new pop up is opened for each time I clicked eventhough the window.open is supposed to reuse the window if it has the same windowId. The first call to window.open takes long enough to not have a window handle and allow other clicks to get through.
I have a probelm about creating DIV in parent window from child window. following code works find in IE8, but it does not work in IE7 and 6
aaa.html
Code:
<html>
<head>
<title>aaa</title>
[Code]....
I have parent page with 10 child window and i want to close all child window when click on close session button on parent but first i need to check whether any child window open or not after that action should be done for close the child window.
View 4 Replies View RelatedAt the moment, I have a page listing keywords associated with an image. The user can click an 'add keyword' link, which loads a child window where they have a form to select & add extra keywords. Now, at the moment when they submit the form, the page reloads the parent window using an onload event. However, I would prefer it if it only reloaded the DIV which holds their keyword list.
My thinking was I could do it with AJAX or something, but I can't find anywhere that even mentions if it's possible. Can anyone help? Is this possible, or am I too ambitious?
I want to close all child window with parent window. First i want to detect whether any child window open if open then it should be close after click close button on parent window.
View 8 Replies View RelatedThis is it- when i create the button code with HTML without script language on the page the button works well but when javascript code added is added to the page the button disappears. If i create the button with javascript it appears but does not open the next window.
View 1 Replies View Related[Code]....
code to make this button work? In the parent window when 2 is input in the textbox and 'OK' button clicked, the second window opens with 2 textbox and 'SUBMIT' button. If 'SUBMIT' button is clicked in the child window i want it to open the new window.
I'm beginner, and there is a task in exam to change inner content of the second child node. Can't get,maybe link to an article how to do it, because I can't find anything in my study book;:mad: edit: is this correct?
function SetUpTranslation() {
var phrases = document.getElementsByTagName('p');
for (var i=0; i < p.attributes.length; i++){
phrases.secondNode.innerHTML=french[i];
element.onclick=swapFE(phrases.secondNode);
element.onmouseup=swapFE(phrases.secondNode);
}
}
I'm currently working on a site that consists of several Iframes. I need to create a page that will load this site with a specific page in the main Iframe as opposed to the normal index page. So far I've simply created a dummy page that opens up the site in a new window and attempts to change the location of the main content Iframe using this piece of js:
Code:
function init()
{
var site = window.open('index.htm', '', '');
site.document.content.location = 'news_caster.htm'
this.close();