JQuery :: Closing A Popup From Another Popup?

Dec 25, 2011

From a parent window, I open two child windows.In the second child, you complete some data, and then it closes the window. I'm trying to figure out how to find and close the first popup window at the same time (as that is used for reference but no action necessary on it).As near as I can tell window.open should let me set a handle that I can then reference later on to close that window (or am I misunderstanding that), but i cannot figure out how to reference that window.

View 1 Replies


ADVERTISEMENT

JQuery :: Reload() Parent After Closing Popup Div On Firefox 3?

Aug 4, 2011

when i closing popup div on firefox 3 not work well,and this my script for reload parent :

window.location.reload();

it work on firefox 4 but on firefox 3, it doesn't work well...

View 2 Replies View Related

Closing A Popup Before Opening Another

Jul 23, 2005

I need some help with closing a popup window. I'm making an online portfolio,
that has one base page with text and thumbnails. When a user clicks on a thumb,
a new window opens containing a larger image and a caption (each contained on a
separate htm document). I do this with a function in the header script as follows:

var picpage=" ";
var params=" ";

function fullpicwin(picpage,params)
{
window.status="Opening picture... please wait";
window.open(picpage,'fullpic',params)
}

picpage (the name of the htm file), and params (window size, etc.) are passed
from the click code by each thumb. Each popup is sized differently, of course,
based on the side of the larger photo. All controls, etc., in the popup are
turned off. The user can click the "x" box or a form button at the bottom of
the popup to close the window.

All this works very nicely... EXCEPT...

The user can move the mouse back to the main page and open ANOTHER popup by
clicking on another thumb BEFORE closing the existing popup. The problem is the
2nd popup retains the size of the first, so of course the photo may be blocked
by the borders, etc.

What I want to do is force the closing of the first popup if the user tries to
open a 2nd and so on. There is no reason to have more than one large photo
showing at the same time.

I thought I could put some code in the function that checks for the existence
of a window named "fullpic", and if it's there, closes it first, then opens
another. But I can't seem to get the syntax right.

View 1 Replies View Related

Automatically Closing A Popup?

Feb 10, 2011

I have a lightbox pop up on my homepage. I'm curious if there's a way to automatically close the pop up after 5 seconds or so.

For some readon onClose kept popping in my head, but I'm pretty sure that's not correct.

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

[Code]....

View 1 Replies View Related

Open A Page/popup After Closing One?

Aug 21, 2009

How could I open a page/popup after closing one? The objective is to log the user out if they haven't Logged out or clicked Logout.

I am sure there is a simple way to do this. None of my ideas work.

The only answer I could come with (after testing the whole day...) IE(any version), Firefox, and other browsers don't support this idea, due to the fact that the user clicked close and you can't impose things on them.

View 21 Replies View Related

Closing One Popup Window And Opening Another

May 21, 2010

I am calling a Java Script function on the button click of a pop up window (ASP.net). The function does the following:
1. Close the Popup window
2. Call JS function on the Parent window
3. Try to open another popup
I am able to close the popup window and call the js function on the parent window but I am not able to open the new window.

CODE:
window.close();
window.opener.clearfields();
window.open('MyExcel.xls');
I need to perform all these in one JS function.

View 2 Replies View Related

Popup On Exiting Site Or On Closing Window

Nov 9, 2003

I have spent the whole of last night looking for a reliable javascript that pops up a small (possibly centered) window when the user exits the site (for another site) and for when he/she closes the site's main window.

Has anybody come across or is aware of a script that does all the above?

View 3 Replies View Related

Closing Popup Window With OnBlur Event Handler?

Jul 20, 2005

I want to close a popup-window with the onBlur eventHandler.
function closeIt() {
setTimeout('window.close()',2000); }
<body onBlur="closeIt()">
html
</body>

There is a form on my page, and when a input-field gets focus, body looses focus and the window closes. That's not what I want. I want to close the window, if focus goes to another
window or application, but not when someone tries to fill that form.

View 2 Replies View Related

Dynamically Open A Popup Window But Ie8 Blocks It With The Popup Blocker

Jan 22, 2010

I am trying to dynamically open a popup window but ie8 blocks it with the popup blocker. basically within a ajax fuction I have a confirm button and if the user clicks yes it opens a popup window. now I tried it with a javascript function but it got blocked, so I have tried it by creating a form with a button in it and instead of calling the popup function direct I call document.form.button.click and in the form my button has onclick"popup('<? echo url; ?>')" but this also is detected as a unwarranted popup and is blocked.

now I understand that the popup blocker works when a popup is called without user interaction, but allows popups on say button clicks. how can I get the popup to work

View 3 Replies View Related

Hide Vbscript Popup With Script Inside Popup?

Jun 4, 2009

1. VBScript opens a dropmenu: oPopUp = window.createPopup

2. Then Javascript code in the popup body should hide the popup when certain item has mouseover.

Can javascript hide vbscript popup (within the popup)?

View 3 Replies View Related

Opening Popup Window By Avoiding Popup Blocker?

Sep 22, 2010

In my application i use window.showmodaldialog() to pop up a window. When i run it in IE pop up blocker wont blocks the window... But when run it in FireFox pop up blocker will blocks the pop up window.. is there any way to open a window with out blocking(avoiding ) by the pop up blocker?

View 1 Replies View Related

Popup Script To Make It Popup Only Once Per Browser Session

Jul 11, 2011

I want to configure the script below to popup only once per browser session. I know nothing about javascript.

Code:

View 3 Replies View Related

Closing A DHTML "popup"

Jun 21, 2005

I'm trying to design my own color-picker pallette (like Photoshop or something) for use on my website (I'm not pleased with any of the ones out there already), but I can't figure out how to make the pallette close if I click anywhere on the document except on the pallette.

The pallette "pops up" (I'm actually just changing the display of a div holding a color table from 'none' to 'block') when the user clicks on an icon of a pallette. They can mouseover the colors to see their hex code and a sample, and clicking on a color chooses it, makes the necessary changes on the page, and closes the pallette. However, I would appreciate some help with getting the pallete to close (change the display from 'block' to 'none' again) when the user clicks on the document outside of the pallette.

View 1 Replies View Related

Popup Question: On Popup Have One Button To Close And Another To Close And Then Redirect To Another Page

Jul 20, 2005

As per the rather long subject, I would like to (well, my boss would like me to...) on a popup have one button to close and another to close but then redirect to another page.

View 4 Replies View Related

Trouble Getting PopUp To PopUp.

Dec 30, 2002

OK, can't figure out what I did wrong here....

View 2 Replies View Related

JQuery :: Open Pdf As A Popup?

May 21, 2010

I want to call the .Net MVC controller and open the crystal report as pdf pop up. Is it possible with $.ajax()? My confusion is what to specify as dataType? Or is there any better way?

View 4 Replies View Related

JQuery :: How To Create Simple Popup Box DIV

Aug 6, 2011

This is my first post. This is about how to create a very simple popup box using JQuery. No third-party plugins or downloads needed. So here goes: We'll create an html file, in my case I named it index.html...
<html><head>
<title> Popup Box DIV </title>
</head><body>
<div id="popup_box"> <!-- OUR PopupBox DIV-->
<h1>This IS A Cool PopUp</h1>
<a id="popupBoxClose">Close</a>
</div><div id="container"> <!-- Main Page -->
<h1>sample</h1>
</div></body></html>

Then, for our css style, we have following:
Noticed the display:none on the popup_box's syle? That is important.
<style type="text/css">
/* popup_box DIV-Styles*/
#popup_box {
display:none; /* Hide the DIV */ .....

View 2 Replies View Related

JQuery :: Coda Like Popup - Multiple Use?

Sep 8, 2010

I found this: [url] and was thinking about implementing it on one of the sites im developing right now. The only thing is, it's only usable once per page and I was kind of hoping i could use it more than once. Is there a way of changing this?

View 2 Replies View Related

JQuery :: Fadeout Use In A Search Popup Box?

May 10, 2011

I'm new to jQuery..so maybe a newbe question. I'm working on a search result dropdownbox. So user enters text in textfield->ajax gets results->displays it in box under textbox. i use folowing code to remove resultbox when user clicks somewhere on page.

[Code]...

This is all working fine, But now i added next page in the result box. As soon as this is clicked , the resultbox is fadeout..because of above code. Can i make it fadeout on a click anywhere except in the textbox or result box ??

View 1 Replies View Related

JQuery :: Close A Popup After Time Out

Aug 13, 2010

Could someone point me any jquery function or plugin to control popups?

I need to close a login form (popup) if the user forget it opened (after timeout without user activity)

That is what I tried: (javascript only)

But it let me get the error "permission denied to read window.history.lenght"

Is there any jQuery alternative?

View 1 Replies View Related

JQuery :: Add Event On A Popup Form?

Apr 28, 2011

I have a popup form in my web page and I want to trigger an event on this form submit.

My popup is created like this code...

View 1 Replies View Related

JQuery :: ActiveX Confirmation Popup In IE With 1.3.2 But Not With 1.2.6?

Apr 2, 2009

After upgrading to jQuery 1.3.2 users of our application will be prompted with a confirm dialog: "Do you want to allow software such as ActiveX controls and plug-ins to run?" The users have to use IE6 (yes I know - but this is a very restrictive and old fashioned corporate environment and I have no influence on the browser configuration). Replacing the content of jquery-1.3.2.js with the content of jquery-1.2.6.js immediately fixes the problem. But we would like to avoid that if possible. Is there any known solution to this?

View 3 Replies View Related

JQuery :: Searching Popup Plugin ?

Jun 21, 2009

Im searching popup plugin

</div><div>Past couple of hours am searching the popup plugin ,</div><div>

View 5 Replies View Related

JQuery :: Superfish As Popup Menu?

Aug 4, 2009

I am in the process of replacing a YUI menu implementation with Superfish. Is there an easy way to implement a popup menu? Something like:[URL]..

View 2 Replies View Related

JQuery :: Lookup A Value In A Treeview (popup)

Jan 28, 2011

I develop a trouble ticket system. The ticket type is hierarchical (the nesting can be as deep as you want). Up to 500 tickets types exist at present.

Up not now I have an old fashioned pop up if you want to set the ticket type (without ajax). It takes quite long for the popup window to appear.

The server side is not problem, I am familiar with python, django and postgres. But JS is not my strength.

how to make this easy. Some users use this (alter ticket type) several hundred times a day!

Maybe it would be best, to have both: a popup window for mouse users and a auto completion field for people who prefer to type.

View 4 Replies View Related

JQuery :: Pass Variables To Popup?

Dec 22, 2011

Wondering what the best way to pass values to a popup jQuery window?

<div style='display:none'>
<div item style='padding:10px; background-color:blue; height:200px; width:200px;'>
$varialbe here?

I use onclicks to bring up a hidden DIV as a dialog box that blacks the background out, can I use this same line of code and pass in variables or should I create a box for each item?

View 1 Replies View Related







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