Opening Multiple Windows ?
Nov 3, 2010I 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:
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:
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]...
I have a company web site where I wish to open a search window with javascript. I do know and have used the window.open( for this.
The window that is opened provides a search function an returns a list of results as hyperlinks. I then want the user to be able to select the link from the list and when the link is clicked the 'poped' search window closes and the hyperlink reference be displayed in the window which referenced it in th efirst place.
Hi I managed to find a way of opening a PDF in a new window using JavaScript.
I warned the user beforehand and opened the new window at 80% height and width of the original window to show it was a new window.
However I can't seem to control XLS, DOC, RTF documents. These are the issues:
1. Firefox: They always seem to open in a new window anyway.
2. Firefox: Firefox opens a blank window as well when the JavaScript is used.
3. IE and Firefox: I can't seem to control the height and width
How can I make this script I generated with HomeSite, open links in new
windows/tab instead of the same? ....
I am opening a new small window through javascript.
Here is the code:
But on the same page I have another link for a new window which is essentially the same code:
As you can see in the red text, one link should open map.asp and the other should open pofull.asp... but they BOTH open in pofull. So I have tried to change the function name for one of them but then it doesnt work at all.
I have tried everything to separate the two scripts but nothing has worked.
I have problems with opening new windows in IE6, in Firefox and Opera it is working fine, but IE6 gives warning and open only one link. Code:
View 1 Replies View RelatedI have a question about opening new pages when a link is clicked on a webpage. What I want to happen is this:
On the main webpage, I would like to have links to other websites. For example:
Link 1
Link 2
Link 3
Now, if I was to click links 1,2 and 3, I would have 4 browser windows open: The window containing the original webpage, plus the 3 windows that were opened by clicking on the 3 links. (I am using a href="www.,,,,," target="_blank"></A>)
Now, what I want to happen is this, I only want the mainpage to have ONE child window so that at any given time, there will be at most 2 browser windows open, the main page window and one child that is opened by clicking on a link. If I click on Link 1 followed immediately by Link 2, I don't want 2 child windows to pop up. What I need to happen is when I click Link 1, it needs to open a window. When I click link 2, the browser window that contains the webpage from link 1 now needs to show the webpage that from link 2. Is there a way to do this using javascript window.open? Code:
I have a function that opens a new window when the link is clicked. The pop-up window contains a customer's info. Each time I click the link, my pop-up is opening in the same (popped-up) window, but I'd like it to create a new window each time.
View 1 Replies View Relatedi m making a web app. after login i want the app run in a 1280*800 size window. i saw many tuts on how to make a popup window but what i don't get it where should i post the code? in the login page or the main home page and so on?
View 3 Replies View RelatedDoing a bit of window-opening: the idea is, when a link is clicked, it selects a random one from an array of urls, and then opens it with certain toolbars missing. Got a script for each part, but not sure how to combine them: 'location' seems to be talking about different things in each script.
the random script:
var single = new Array ("a.htm","b.htm","z.htm")
function choose(){
window.location=choose[Math.floor(Math.random()*single.length)] }
[code].....
I am working on an application (for internal company use) that is meant to be viewed over three monitors. I'm wondering how to accurately position windows on the secondary and tertiary monitors. If they all have the same resolution (say 1280x1024), can we assume that the second monitor begins at 1281, and the third begins at 2561?
View 2 Replies View RelatedMy computer seems to have problems with its javascript when opening new windows from certain sites that are either audio or video files. I simply have not got a clue where to begin.
View 3 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");
..
..
..
}
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 Relatedhen 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 RelatedI 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.
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:
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(ƈ.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(ƈ.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")
}
I was wondering if there's a way to get rid of the button, and make it so when the user opens the webpage, it automatically opens the multiple webpages.If that's not possible, I was also wondering if there's a way to make the button "click" on a mouseover, so when they move their mouse across the button, it opens the pages.
View 3 Replies View RelatedI 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?
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:
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 RelatedI have five divs that I want to work kind of like an accordion, but you can open multiple sections. Right now, when user clicks any link, it opens all five sections. And when you click to close, it closes all five. I want to be able to open one section, then go to the next and so on.
Here's what I have now:
Html looks like this:
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.
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.