Multiple Popup Windows

Jul 20, 2005

I've a problem I hava a page with different popup windows, when I hit a link the first one pops up and with the first open i would like to hit the second link in the parent page so the second links pops up a window in the first popup. The way I have it now is working but with each link the
size of the popup window should be different but that doesnt happen how can I solve that problem?

this is my code:

View 5 Replies


ADVERTISEMENT

Multiple Popup Windows Opened When A Button Is Clicked Multiple Times.

May 25, 2006

This is my first post to this forum. When a button in parent window is clicked multiple times, more than one popup window is opened. This problem is occurring in linux firefox and mozilla browsers. In windows the code is working fine. Is there any option in window.open() method to open a popup window once. s there any known issue regarding this case?. Need a workaround to fix this issue.

View 1 Replies View Related

Child Windows Can Not Access Window.opener When Multiple Child Windows Are Open

Jul 23, 2005

I 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");

..
..
..
}

View 1 Replies View Related

Multiple Child Windows Opened When A Button Is Clicked Multiple Times?

May 24, 2006

hen a button in parent window is clicked multiple times, more than one child window is opened. This problem is occurring in linux. In windows the code is working fine. Is there any option in window.open() method to open a child window once.

View 8 Replies View Related

Popup Windows For IE7 ?

Mar 22, 2009

I made a pop up window for my site for my Admin Controls and the pop up javascript window works for every browser but IE7 (Not that I'm surprised)...

How to make a fixed pop up window that will work for all of the browsers out there right now.

View 10 Replies View Related

Managing Popup Windows

Jul 23, 2005

I have a parent window that potentially open a lot of pop windows(let call
them children windows) from different page on the parent. Over time, those
children windows can add up on the screen if the users don't close them
manually. What I'm looking to do is I want to have all the children windows
closed itself when the parent windows is closed by either X it out or close
by the window.close method in the parent window. I know every children
windows has it own window name. What I could do here is look for those
children window names then close it using a script in the parent window. But
the challenge is, I don't know which windows are opened when the user about
to close the parent window. I would get a object not found error if i
reference a none existent children window name. I want to avoid that error.
I want to know all the available pop up windows at the time when the parent
window is about to close then close them out. Does anyone have some ideas?

View 1 Replies View Related

Popup Windows From Dropdown Box

Jul 23, 2005

I've spent hours adapting various scripts from this forum, but haven't
been able to make anything work yet. Any help would be appreciated.

What I want seems simple - which is why I can't believe I can't find
it in the archives.

I want to create a simple dropdown - so that selecting any item will
force a popup window to appear. I need to control the size and
atributes of the popup window (ie the popup window will show sample
colors / patterns of a product).

View 1 Replies View Related

Rescaling In Popup Windows ?

Jul 10, 2009

I have a project for a beauty salon/spa in which a number of pages have pop-up windows with nothing but price lists.

I'm using a simple script for the new windows:

The pop-up windows work, but the browser (both Firefox and Safari) is resizing the image down to fit the window size of 600 x 800. All the images are 600 px in width, but some are as tall as 1400 px. Right now the pop-ups are just images (gifs). Do they need to be HTML, or is there a way to "turn off" the rescaling so it will display the images at 100%?

View 2 Replies View Related

Windows Popup In The Browser

Nov 17, 2011

In the past I write the jave script to popup windows in the browser for tell our visitor about news & event but now most of browser will block popup by default. Someone can show me an example about the professional popup with out the block.

View 4 Replies View Related

Sized PopUp Windows

Jun 2, 2006

I'm trying to make a window popup in a 250x250 window.

<script language="javascript">
function MyOpenWindow() {
var MyURL = 'http://www.xyz.com/developers/pops/categories.php'
var MyWindowName = 'GoldFiles Categories'
var MyWindowOptions = 'width=250,height=250'
window.open(MyURL, MyWindowName, MyWindowOptions);
}
</script>

<a href="javascript:MyOpenWindow();">Site Categories</a>

I'm not terribly familiar with JavaScript, and was hoping someone more experienced could tell me if this is correct, and if so, were do i put this code? Also, I'm trying ot mix it in with a PHP echo(' <script> '); php code block.

View 5 Replies View Related

Windows Popup Without The Microsoft Stuff

Mar 29, 2007

Is it possible to have a pop up window without the Microsoft stuff at the
top?

View 5 Replies View Related

Implementing Script - Images Popup Windows

Apr 29, 2011

I'm trying to do what they are saying at this link: [URL]. First, they tell me to do what is listed under the "Scripting Disabled" section:
<a href="file.htm" onclick="window.open('file.htm'); <br>
return false;" target="newWin">

Then, down in the page in the "The Perfect Pop-Up Script" section it has a large script for me to use. I'm wanting to use it at my page [URL]. I want to make each of my images pop up windows like at this site: [URL] So, are they telling me to use the html in both sections? Where would I put the html in the top section vs. the script in the lower section?

Do I have to make another webpage and just paste the script in there and then call it, like they say below: "To call the function you would use the following code:"
<a href="my-pop-up-window.htm" <br>
onclick="popUp(this.href,'console',400,200);return false;" <br>
target="_blank">This is my link</a>

I'm a bit confused where I am supposed to inserting the page name for the popup that I want to pop up vs inserting the pagename for the script page that I guess I have to make. So what are the steps that I would take to do all of this?

View 1 Replies View Related

Params Between Parent And Popup Windows Using IE (everything's Fine With Firefox)

Sep 15, 2005

I have one page with <select> list in it, which opens a popup with
another <select> list. Those two list are linked... When I select
something in the list that is in popup window and confirm the selection
(by pressing button), I call a function that fills the "parent" window
and forces popup to close. All this is accomplished by directly
accessing another list:

for(var i = 0; i <= selLength; i++){
name = parent.window.opener.listValues.options[i].text;
value = parent.window.opener.listValues.options[i].value;

self.document.form1.itemList.options[i] = new Option(name, value);
}

And this doesn't seem to work with IE. With Firefox is OK.

Any ideas how to make it work with IE?

View 5 Replies View Related

JQuery :: Windows.open An Another Page Or A Form In Popup

Nov 12, 2010

I want to know if I can open an another page or a form in popup using jquery?

View 1 Replies View Related

Adobe Contribute And Popup Windows / Lightbox Feature

Jul 29, 2009

I have a client which would like to use Adobe Contribute to maintain their website, and the website requires popup windows (for larger images) or a lightbox feature. The problem is how do I make images popup into new windows, without toolbars, etc. I would prefer lightbox than popup windows, if possible. How I can do this, so the client can add more images, as they maintain their website? For anyone that hasn't used Contribute, you can only edit <a href="page.htm"> and nothing else for the links, so it means onclick can't be added to <a href="page.htm">. The only way to add a link is to click on a button in the tools.

View 1 Replies View Related

JQuery :: Scrolling Height Of The Window And Placing Popup Windows

Jul 14, 2009

for opening a PopUp Window I use the Popup.js from Adrian "yEnS" Mato Gondelle. Adrian has written a function to center the popup by calculating the window height/with and popup width/height as well ans putting the coord in the middle of these coordinates. Like this:

function centerPopup(){
//request data for centering
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;

[Code].....

My Problem with this is, that it only centers the Popup correctly if you haven't scrolled down the page. What I need is a jQuery way to get the height of the actually scolled position to calculate the correct value for the top css parameter as well, to get my PopUp every time in the correct top/left position without having this scrolling bug. Is there a way in jQuery how I can get the scrolled down coordinates? I need the height of the scrolled position and by adding the half height of the screen resolution I have the css top value which I need here.

View 2 Replies View Related

Multiple Pop Up Windows

Nov 27, 2002

I have a web page with several thumbnail images displayed. These are linked to the full size images that appear in pop up windows.

I have two questions:
Firstly, is it possible to size the pop up windows the same dimensions of the images within? If not, how can I center the image displayed in the pop ups?

Also, I have tried and failed to get the pop up to appear in the centre of the screen.

View 5 Replies View Related

Multiple Windows On Different Locations

Nov 21, 2006

I need to open multiple windows via javacript. The for-loop is willing to do that for me:

function open_multiple(){
for(i=1; i<=10; i++){
window.open(&#392;.htm', 'myWindow'+i)
}

There's no problem in using the var i in the naming of the windows.
What I'm struggling with is the var i in the positioning:

function open_multiple(){

for(i=1; i<=10; i++){
var x=30*i;
var y=30*i;
window.open(&#392;.htm', 'myWindow'+i, 'top='y', left='x);
}
}
As you can see, I've put the vars outside the string as part of the solution I allready found out. Obviously, as I'm still posting this; it doesn't work yet. :o I must be overlooking something.

if (anyone can point out my mistake here){
document.write("thanks a million")
}

View 2 Replies View Related

Opening Multiple Windows ?

Nov 3, 2010

I have a JavaScript that allows you to open 5 additional windows when you click on the button. It works properly when using Mozilla, but when you use IE7, only 1 window pops up not 5.

Code:

View 3 Replies View Related

Multiple Windows Using Window.open()

Mar 24, 2006

I have 2 jsp pages which are loaded from the same browser window.
Inside these jsp pages, I have created 2 windows to write client side
log. I have used different id for 2 windows as follow.

In JSP1 page I create one window & second window is created in jsp2
page.

Win1 = window.open('Log1', 'win1',
config='right=0,top=60,toolbar=0,width=300,height= 300,resizable=1,scrollbars=1,location=no,status=no
');

Win1.document.writeln(yyyy + '-' + mm + '-' + dd + ' ' + hh + ':' + mn
+ ':' + ss + ',' + ms);

Win2 = window.open('Log2', 'win2',
config='right=0,top=60,toolbar=0,width=300,height= 300,resizable=1,scrollbars=1,location=no,status=no
');

Win2.document.writeln(yyyy + '-' + mm + '-' + dd + ' ' + hh + ':' + mn
+ ':' + ss + ',' + ms);

When the page loads I can see 2 pop-up windows just fine. But then all
the writeln statements(from page1 & page2) go to the win2. Even the
writeln statements from page1. I would like to have page1 log go to
win1 & page2 go to win2. What I am doing wrong?

View 1 Replies View Related

Multiple Draggable Windows - Layers

Feb 9, 2009

I'm not much of a programmer so I've difficulties getting the yellow windows at the following web address: [url] to drag and collapse correctly. Currently, the only window that works is the one with the red header. All the other windows should also be draggable and be allowed to close down.

So, basically I need to create the variable for this thing so that the nav windows work correctly. Problem is, everything I've tried has failed miserably to date.

code:

View 3 Replies View Related

How To Open Multiple Chat Windows

Mar 24, 2009

I'm developing chat application using Ajax,jsp,HTML,java. I have strucked in opening multiple windows to chat with diff users by clicking on roster window.I want to be open a window tat looks like a chat window in gmail.I have created one window like tat using div's but I'm not able to open multiple divs with diff user names.

View 2 Replies View Related

Opening Multiple Windows Or Tabs

Aug 4, 2011

I am currently designing a website for our public library. I have added a card catalog search bar on the side of every page. Our catalog software company has supplied the code. After embedding it, I previewed each page to make sure it was working properly. At the time, it worked fine. Since then, I have added other elements to the homepage such as a Twitter feed and a Flickr slideshow. Now, when I attempt to search in the catalog search bar on the homepage, it opens two tabs, but only in Firefox.

Our IT person from the software company suggested I make a copy of the page and strip the code down to see what the problem is. After doing this, I have made no headway. Even with the catalog as the only code left on the page, other than text, it still opens two tabs.

[Code]...

View 3 Replies View Related

How Many Ways To Open Multiple Windows With A Click?

Jul 23, 2005

Are there other ways to open multile windows at once?

<SCRIPT language="JavaScript">
function open1() {
var open1 =
window.open('http://google.com/CheckEnviro.pl','','scrollbars=yes,height=600
,width=800,resizable=yes');
}
function open2() {
var open2 =
window.open('http://google.com/CheckEnviro.pl','','scrollbars=yes,height=600
,width=800,resizable=yes');
}
function open3() {
var open3 =
window.open('http://google.com/CheckEnviro.pl','','scrollbars=yes,height=600
,width=800,resizable=yes');
}
// -->
</SCRIPT>

<A href="javascript:open1();open2();open3();">Click Here to open all</A>

Here is what I have now, but I need something which can pass HTTP_REFEREER.
The window.open does not do that.

View 2 Replies View Related

Counting Text Copied To Multiple Windows

Apr 22, 2009

A while ago I queried how to count total characters in an output document and never really got anywhere. this query builds on from that. basically what I need to do is as follows.

- Using a basic input form, gather information.
- Populate strDoc with the info.
- When the button is clicked, the strDoc is populated and formatted and displayed in a popup window using:

What I'm trying to do is create a function that will count all characters in the strDoc (including spaces/LF/CR etc). If the total of the output doc is > 3800 characters, then the function will separate the doc into chunks no greater than 3800 characters and display each chunk in either a different window or a single window labled in order of chunk (ie. 1, 2 or 3).

This is way beyond me at this stage, but is critical to a project I'm working on at the moment.

View 8 Replies View Related

Load Multiple Windows.onload Functions ?

Apr 22, 2011

I am having trouble running multiple windows.onload functions and having trouble how to implement them.

Here are the two functions I'm trying to load:

View 4 Replies View Related







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