Opening 2 Separate Windows ?
Feb 18, 2011
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.
View 2 Replies
ADVERTISEMENT
Dec 17, 2006
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.
View 3 Replies
View Related
Mar 23, 2007
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
View 1 Replies
View Related
Nov 18, 2006
How can I make this script I generated with HomeSite, open links in new
windows/tab instead of the same? ....
View 4 Replies
View Related
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
Jul 20, 2006
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 Related
Feb 26, 2003
I 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:
View 1 Replies
View Related
Jan 22, 2011
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 Related
Jan 5, 2010
i 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 Related
May 19, 2010
Doing 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].....
View 2 Replies
View Related
Oct 15, 2010
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 Related
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
Apr 13, 2010
My 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 Related
Jan 29, 2010
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 Related
Sep 23, 2011
How would I seperate a text string such that it would appear on seperate lines ie. Initial Input: StrMsg = "This is an example of a string that will appear on seperate lines" "Hoping that this fully works, there will be no errors and all will be well" "This is the last line of text."
[Code]..
View 11 Replies
View Related
Apr 6, 2010
below is clickunder code , but it open under windows when visitor click everywhere on the pagei need it be speacial for links , whenever visitor click on speacial link , it opens windows
<SCRIPT LANGUAGE="Javascript">
function PopShow3() {
CookieTest=navigator.cookieEnabled; if(CookieTest)
[code]....
View 5 Replies
View Related
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
Jul 20, 2005
I have an html form and an icon, if i click on the icon, a new pop-up
window is open and shows a list of numbers with a structure like this
:
x.xx.xxx.xxxx.
Now, this numbers are between an <a href> tag and if i clic on one of
this, i call a javascript function, the idea is to put each one number
separate for the "." in a textbox, so i did it before but putting it
in a single input. Now i need to separate each one of this numbers and
put it in each one of the textbox. If i have to put it in a single
input iŽll do something like this:
<script language="javascript">
function Funcion(val)
{
//val value is 1.12.123.1234
window.parent.opener.document.txtCtaNiv.value=val;
top.parent.window.close();
}
</script>
The code above puts the value (that previosuly i selected in the popup
window) in the input field of the main form. That's easy.
Now if the parameter val has the value 1.12.123.1234 and in the main
form i have four input fields called txtCtaNiv1, txtCtaNiv2,
txtCtaNiv3, txtCtaNiv4, how can i separate the parameter val?, so i
can put the 1 in txtCtaNiv1, the 12 in the input field txtCtaNiv2, the
123 in txtCtaNiv3 and so on?
View 3 Replies
View Related
Nov 30, 2010
I am using the "lightbox" effect to open my images which uses javascript. I am also using jQuery for the changing banner at the top of the page. Ever since I put the jQuery script in, the "lightbox" script stopped working. When I remove the jQuery script, the "lightbox" script works again. Obviously they are conflicting for some reason. I have included the relevant code below.
HTML Code:
View 6 Replies
View Related
Jun 26, 2009
How can the output of the following code be written on separate lines ?
View 3 Replies
View Related
Nov 4, 2009
On my web page I have 3 seperate catorgories with 2 drop down lists in each, the first dropdown list in each catergory is for "county"
Here is a snippet of the code
I wanted to know if it is possible to use "list.js" to populate all 3 county dropdown lists or would I need "list.js" "list1.js" etc etc
View 10 Replies
View Related
Sep 20, 2009
Is it possible to load a separate page into a div tag using Javascript? or doo I need to resort to C# and ASP.NET? What I have is a main page with one content div I wanted to switch based on which heading item a user chooses. I know I will probably need to set the other pages to a fixed width which is fine.Might it be easier to just make my content into an image and load the image? There will be a few lines of text in the image.
View 5 Replies
View Related
Dec 26, 2004
I there any possible way to set this up so the menu is in a separate javascript file? This way I could just link to the menu on the pages I need it to show up.
View 3 Replies
View Related
Mar 18, 2010
I want to separate textarea from input in my HTML form! I have done it but it's ugly and slow and not useful. I want to do one loop through my whole form and separate one from the other so I can specify how to pull the value. The form is PHP and very dynamic so I don't know the names of the fields.
Here is my code!
Code:
View 1 Replies
View Related
Jun 8, 2011
I wonder why I am not getting desired output.
expected output:
Actual output in IE8 is Amended Completed Matured
View 4 Replies
View Related
Sep 19, 2010
I want to put all my javascript into a external js file so I dont have to put in the html, but it isnt working for some reason.
====Working====
1. Inside my HTML
<script type="text/javascript">
$(function() {
[Code]....
View 2 Replies
View Related