473,785 Members | 2,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Script pop-up

Hello,

I am having an issue with this java code for a pop-up.

window.open('cl ientsCreate.asp x',null,','_bla nk,height=350,w idth=750,menuba r
=no,status=no,t oolbar=no')

I need the ability to open several of the same page. For example, when the
link is clicked with this code the page opens fine, however, on subsequent
pages it opens in the last new window, not a truely new one.
i.e
--
1.Page 1 Hyperlink is clicked
2.clients.Creat e.aspx opens in a new window
3.Page 1 Hyperlink is clicked again
4. the clientsCreate.a spx is loaded into step No. 2 window.

TIA,

Steve Wofford
www.IntraRELY.com
Nov 17 '05 #1
3 1404
Hi

If you don't give it a name a new window should open
window.open('cl ientsCreate.asp x',null,'height =350,width=750, menubar=no,stat u
s=no,toolbar=no ')
You had an extra ',' and _blank is invalid in this context... should work
like above

More info
http://msdn.microsoft.com/library/de...ods/open_0.asp

--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
=============== ===============
"IntraRELY" <In*******@yaho o.com> wrote in message
news:up******** *****@TK2MSFTNG P12.phx.gbl...
Hello,

I am having an issue with this java code for a pop-up.

window.open('cl ientsCreate.asp x',null,','_bla nk,height=350,w idth=750,menuba r =no,status=no,t oolbar=no')

I need the ability to open several of the same page. For example, when the
link is clicked with this code the page opens fine, however, on subsequent
pages it opens in the last new window, not a truely new one.
i.e
--
1.Page 1 Hyperlink is clicked
2.clients.Creat e.aspx opens in a new window
3.Page 1 Hyperlink is clicked again
4. the clientsCreate.a spx is loaded into step No. 2 window.

TIA,

Steve Wofford
www.IntraRELY.com

Nov 17 '05 #2
You should give it a new name for each window.
In your example you're using the same window (named "_blank") each time.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"IntraRELY" <In*******@yaho o.com> wrote in message
news:up******** *****@TK2MSFTNG P12.phx.gbl...
Hello,

I am having an issue with this java code for a pop-up.

window.open('cl ientsCreate.asp x',null,','_bla nk,height=350,w idth=750,menuba r =no,status=no,t oolbar=no')

I need the ability to open several of the same page. For example, when the
link is clicked with this code the page opens fine, however, on subsequent
pages it opens in the last new window, not a truely new one.
i.e
--
1.Page 1 Hyperlink is clicked
2.clients.Creat e.aspx opens in a new window
3.Page 1 Hyperlink is clicked again
4. the clientsCreate.a spx is loaded into step No. 2 window.

TIA,

Steve Wofford
www.IntraRELY.com

Nov 17 '05 #3
Hi

if for any reason it does not work assign it a random name

function doIt(sPageToGo) {
var d = new Date();
window.open(sPa geToGo,"myWin" + d.getHours() + d.getMinutes() +
d.getSeconds(), "SPECS HERE");
}

--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
=============== ===============
"Steve C. Orr, MCSD" <St***@Orr.ne t> wrote in message
news:O2******** ******@TK2MSFTN GP12.phx.gbl...
Nevermind, it looks like Vidar is right. I hadn't noticed your misplaced
comma situation.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net

"Steve C. Orr, MCSD" <St***@Orr.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
You should give it a new name for each window.
In your example you're using the same window (named "_blank") each time.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"IntraRELY" <In*******@yaho o.com> wrote in message
news:up******** *****@TK2MSFTNG P12.phx.gbl...
Hello,

I am having an issue with this java code for a pop-up.

window.open('cl ientsCreate.asp x',null,','_bla nk,height=350,w idth=750,menuba r
=no,status=no,t oolbar=no')

I need the ability to open several of the same page. For example, when the link is clicked with this code the page opens fine, however, on subsequent pages it opens in the last new window, not a truely new one.
i.e
--
1.Page 1 Hyperlink is clicked
2.clients.Creat e.aspx opens in a new window
3.Page 1 Hyperlink is clicked again
4. the clientsCreate.a spx is loaded into step No. 2 window.

TIA,

Steve Wofford
www.IntraRELY.com



Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
12087
by: Laura P | last post by:
Hi, I wasn't sure whether this should be posted in the Java are or in a Solaris thread, so I shall post it in both. Sorry for the duplication. I am new to Solaris and am having trouble running a long Java command from a shell script. Firstly, my Solaris (8) / Java setup. Mu machine already had Java 1.2
16
3634
by: Arun | last post by:
I have a query.I am a freah engineering graduate and have 2 job offers.One is with LG Electronics Korea where I 'll be working in korea as a software Engineer in Embedded systems exclusively at their research labs .And second job is witha large software firm by the name of TCS who has a global presence and where probably I'll be exposed to technologies like Java /VB etc.I m in a deleima reagarding which one to take up.Since all of u guys...
12
5925
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it says: usage: java fit.FitServer host port socketTicket -v verbose I think this is because I do not understand the jython mechanism for inheritance (yet).
2
2342
by: sangram | last post by:
i need a javascript for popup window and how to pass value to that new window from old window .
0
2581
by: tosreejithp | last post by:
Hi, My first problem was i am not able to compiled a file from java script to java class.Now its clear and working fine..now i can convert a java script file to java class by Rhino Java Script Compiler.But now i am facing 1 more problem.i want to run that java class in IntelliJIdea.but its runnig with no error and not getting the out put.This is the converted java class for printing "HelloWorld". import org.mozilla.javascript.*; import...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10327
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.