473,569 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pop up windows on user command

We have an app in which we want to enable our users to open numerous
documents in new browser windows.

I got the new window open thing down but each time I open a new document it
opens it in the same popup window. I want to be able to select new documents
and open those selected documents one at a time in a new browser window as
the custormer selects a new document to open.

So how do I do that?
Jul 20 '05 #1
3 1546
rf

"Paul Moffitt" <pm******@houst on.rr.com> wrote in message
news:c4******** *************** ***@posting.goo gle.com...
We have an app in which we want to enable our users to open numerous
documents in new browser windows.

I got the new window open thing down but each time I open a new document it opens it in the same popup window. I want to be able to select new documents and open those selected documents one at a time in a new browser window as
the custormer selects a new document to open.

So how do I do that?


target="_blank"

Cheers
Richard.
Jul 20 '05 #2
how would I place target="_blank" in this script? I am triggering it
from an onclick event on an input button not a link

function openTxt() {
var subWindow

subWindow = window.open("he lp/fieldData.asp?t xtData=" + ctrValue,
"sub", "toolbar=0,loca tion=0,status=0 ,menubar=0,scro llbars=1,resiza ble
=1, width=650, height=340, left=52px, top=100px")

if(!subWindow.o pener) {
subWindow.opene r = window
}
subWindow.focus ()
}
Jul 20 '05 #3
pm******@housto n.rr.com (Paul Moffitt) writes:
how would I place target="_blank" in this script? I am triggering it
from an onclick event on an input button not a link
Change "sub" to "_blank".
subWindow = window.open("he lp/fieldData.asp?t xtData=" + ctrValue,
"sub", "toolbar=0,loca tion=0,status=0 ,menubar=0,scro llbars=1,resiza ble
=1, width=650, height=340, left=52px, top=100px")


You should not have spaces in the window configuration string. It makes
some browsers fail to open the window.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #4

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

Similar topics

2
15212
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000 Personal disk from the SQL Server 2000 Enterprise kit as this is reported here on the MSDN web site to be the version that is supported on Windows XP. ...
4
15518
by: Primo | last post by:
Hi, This problem has been frustrating me for days and I hope you experts can help me out. I am trying to run a command, which I would normally run from the command line, from within my C# application. The command runs successfully from a Windows Form but fails if the application is recasted as a Windows service. The application is...
4
3509
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the...
17
5074
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the Windows XP IIS back to ASP.NET 1.1 then I get the Configuration Error (which is understandable because I'm trying to run an ASP.NET 2 site with 1.1...
4
14045
by: reachsamdurai | last post by:
Hello, Can you please let me know the procedure to reach db2 command prompt from a cygwin window (hence without using Start-> Run -> db2cmd method). I'm planning to write shell scripts which accesses DB2 database on windows platform hence I installed cygwin but I'm unable to connect to database as it fails with the error message. $ db2...
0
3435
by: Kofa | last post by:
Hi, I cannot create/drop databases from the command line, only from the GUI. Below is a detailed description of my installation and configuration attempts (sorry about the long post). I'm usually logged on to my PC as a domain user, IBE\ikovacs. As IBE\ikovacs, I'm member of my PC's Administrators group. There's also a local user...
0
1462
by: Troels Arvin | last post by:
Hello, On a Windows Server 2003 (Release 2, service pack 1), I've installed the latest DB2 Connect, i.e. only client software/drivers. I cannot make tools like the Command Line Processor and the Command Editor work for people unless I put add them to the Administrators group. During installation, I'm asked if I want to use Operating...
4
10494
by: Peter Nimmo | last post by:
Hi, I am writting a windows application that I want to be able to act as if it where a Console application in certain circumstances, such as error logging. Whilst I have nearly got it, it doesn't seem to write to the screen in the way I would expect. The output is:
0
30187
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is a comprehensive list of all autostart locations for Windows OSes: NOTE : These are some abbreviations used in this list. Please note them...
0
7924
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. ...
0
8125
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7676
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...
0
6284
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...
0
5219
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...
0
3653
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...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.