473,408 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Java Script pop-up

Hello,

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

window.open('clientsCreate.aspx',null,','_blank,he ight=350,width=750,menubar
=no,status=no,toolbar=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.Create.aspx opens in a new window
3.Page 1 Hyperlink is clicked again
4. the clientsCreate.aspx is loaded into step No. 2 window.

TIA,

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

If you don't give it a name a new window should open
window.open('clientsCreate.aspx',null,'height=350, width=750,menubar=no,statu
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*******@yahoo.com> wrote in message
news:up*************@TK2MSFTNGP12.phx.gbl...
Hello,

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

window.open('clientsCreate.aspx',null,','_blank,he ight=350,width=750,menubar =no,status=no,toolbar=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.Create.aspx opens in a new window
3.Page 1 Hyperlink is clicked again
4. the clientsCreate.aspx 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*******@yahoo.com> wrote in message
news:up*************@TK2MSFTNGP12.phx.gbl...
Hello,

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

window.open('clientsCreate.aspx',null,','_blank,he ight=350,width=750,menubar =no,status=no,toolbar=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.Create.aspx opens in a new window
3.Page 1 Hyperlink is clicked again
4. the clientsCreate.aspx 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(sPageToGo,"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.net> wrote in message
news:O2**************@TK2MSFTNGP12.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.net> wrote in message
news:%2****************@TK2MSFTNGP12.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*******@yahoo.com> wrote in message
news:up*************@TK2MSFTNGP12.phx.gbl...
Hello,

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

window.open('clientsCreate.aspx',null,','_blank,he ight=350,width=750,menubar
=no,status=no,toolbar=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.Create.aspx opens in a new window
3.Page 1 Hyperlink is clicked again
4. the clientsCreate.aspx 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
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...
16
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...
12
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...
2
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
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
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...

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.