473,413 Members | 1,854 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,413 software developers and data experts.

Opening a New Window with no toolbars etc

I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link without any
toolbars, addressbars, scrollbars and tabs. I would be happy even if the
control to limit the appearance of the new window was in the new asp page.

Any suggestions or pointers would be greatly appreciated.

Thanks,

Rob

Jun 27 '08 #1
15 2843
anon wrote on 10 mei 2008 in microsoft.public.inetserver.asp.general:
I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link without
any toolbars, addressbars, scrollbars and tabs. I would be happy even
if the control to limit the appearance of the new window was in the
new asp page.
Classic ASP, being serverside script, has no knowledge of the concept of a
window.
ASP, next to serverside manipulation, only prepares the html stream for
sending to the client.
I would be happy even
if the control to limit the appearance of the new window was in the
new asp page.
Again, ASP is not a page, it is serverside code content that is executed on
the server and never leaves the server. Often it is called from the client
with an .asp extention, but only the html [perhaps with clientside code],
is sent to the client.

So you are asking in the wrong NG.

Try a NG about clientside scripting, like <news:comp.lang.javascript>

[It could even be that you are asking about ASP.NET. We overhere do not
know about such things. This is a classic asp group.
Dotnet questions c/should be asked in
<microsoft.public.dotnet.framework.aspnet>]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 27 '08 #2
"anon" <an**@anon.comwrote in message
news:53**********************************@microsof t.com...
I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link without any
toolbars, addressbars, scrollbars and tabs. I would be happy even if the
control to limit the appearance of the new window was in the new asp page.

Any suggestions or pointers would be greatly appreciated.
Take look at this code:-

<html>
<head>
<script type="text/javascript">
function displayItem()
{
var url = "NextPage.asp?item=" + this.getAttribute("itemID");
window.open(url, "_blank", "toolbar=no, menubar=no, location=no,
scrollbars=no")
}
</script>
</head>
<body>
<div><a href="javascript:void(0)" itemID="1"
onclick="displayItem.call(this)">Item 1</a></div>
<div><a href="javascript:void(0)" itemID="2"
onclick="displayItem.call(this)">Item 2</a></div>
</body>
</html>

The key thing to note is the use of the window.open method.
--
Anthony Jones - MVP ASP/ASP.NET
Jun 27 '08 #3
Gazing into my crystal ball I observed "anon" <an**@anon.comwriting in
news:53**********************************@microsof t.com:
I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link without
any toolbars, addressbars, scrollbars and tabs. I would be happy even
if the control to limit the appearance of the new window was in the
new asp page.

Any suggestions or pointers would be greatly appreciated.

Thanks,

Rob
This is off topic for this group, but with that said, stop wanting that.
Let the user decide if they want to open a new window. Opening new
windows, especially without chrome, breaks the back button and can be
confusing to the user. There is also the issue of memory, especially on
systems with little memory, and systems that are using dial-up.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jun 27 '08 #4
"Adrienne Boswell" <ar****@yahoo.comwrote in message
news:Xn****************************@69.28.186.121. ..
Gazing into my crystal ball I observed "anon" <an**@anon.comwriting in
news:53**********************************@microsof t.com:
I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link without
any toolbars, addressbars, scrollbars and tabs. I would be happy even
if the control to limit the appearance of the new window was in the
new asp page.

Any suggestions or pointers would be greatly appreciated.

Thanks,

Rob

This is off topic for this group, but with that said, stop wanting that.
Let the user decide if they want to open a new window. Opening new
windows, especially without chrome, breaks the back button and can be
confusing to the user. There is also the issue of memory, especially on
systems with little memory, and systems that are using dial-up.
Well thats a matter of perspective. If you are developing an intranet style
application then for example the opening of new windows to show a more
detailed view of an item displayed in summary in a list of similar items is
quite a common and very natural requirement.

--
Anthony Jones - MVP ASP/ASP.NET
Jun 27 '08 #5
Gazing into my crystal ball I observed "Anthony Jones"
<An*@yadayadayada.comwriting in
news:#5**************@TK2MSFTNGP05.phx.gbl:
"Adrienne Boswell" <ar****@yahoo.comwrote in message
news:Xn****************************@69.28.186.121. ..
>Gazing into my crystal ball I observed "anon" <an**@anon.comwriting
in news:53**********************************@microsof t.com:
I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link
without any toolbars, addressbars, scrollbars and tabs. I would be
happy even if the control to limit the appearance of the new window
was in the new asp page.

Any suggestions or pointers would be greatly appreciated.

Thanks,

Rob

This is off topic for this group, but with that said, stop wanting
that. Let the user decide if they want to open a new window. Opening
new windows, especially without chrome, breaks the back button and
can be confusing to the user. There is also the issue of memory,
especially on systems with little memory, and systems that are using
dial-up.

Well thats a matter of perspective. If you are developing an intranet
style application then for example the opening of new windows to show
a more detailed view of an item displayed in summary in a list of
similar items is quite a common and very natural requirement.
The OP never said it was for an intranet, hence my response.
Additionally, the OP indicates these links are for pages in a series.
New windows should not be opened for links in a series, that's what the
back and forward buttons are for, eg.

<link rel="next" href="page3.asp">
<link rel="previous" href="page1.asp">

A conforming browser will also display that information in its chrome.
A breadcrumb trail would be even better, but not new windows.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jun 27 '08 #6

"Adrienne Boswell" <ar****@yahoo.comwrote in message
news:Xn****************************@69.28.186.121. ..
Gazing into my crystal ball I observed "Anthony Jones"
<An*@yadayadayada.comwriting in
news:#5**************@TK2MSFTNGP05.phx.gbl:
"Adrienne Boswell" <ar****@yahoo.comwrote in message
news:Xn****************************@69.28.186.121. ..
Gazing into my crystal ball I observed "anon" <an**@anon.comwriting
in news:53**********************************@microsof t.com:

I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link
without any toolbars, addressbars, scrollbars and tabs. I would be
happy even if the control to limit the appearance of the new window
was in the new asp page.

Any suggestions or pointers would be greatly appreciated.

Thanks,

Rob


This is off topic for this group, but with that said, stop wanting
that. Let the user decide if they want to open a new window. Opening
new windows, especially without chrome, breaks the back button and
can be confusing to the user. There is also the issue of memory,
especially on systems with little memory, and systems that are using
dial-up.
Well thats a matter of perspective. If you are developing an intranet
style application then for example the opening of new windows to show
a more detailed view of an item displayed in summary in a list of
similar items is quite a common and very natural requirement.


The OP never said it was for an intranet, hence my response.
As I said its matter of perspective. The OP didn't say it wasn't for an
intranet either. What is clear is that the OP wants behaviour commonly
found in application oriented pages which do tend to be found more in the
intranet 'style' application.
Additionally, the OP indicates these links are for pages in a series.
New windows should not be opened for links in a series, that's what the
back and forward buttons are for, eg.

<link rel="next" href="page3.asp">
<link rel="previous" href="page1.asp">
Again another matter of perspective. You've drawn that conclusion purely
from the name of a target page 'nextpage.asp'. However I don't see that
requirement in the text which clearly indicates the OP wants to keep the
window holding a list of items open and create a new window to display the
details of a specific item.
A conforming browser will also display that information in its chrome.
A breadcrumb trail would be even better, but not new windows.
Yet another matter of perspective, why is breadcrumb better? I know in some
applications the user may want to open two items and display them side by
side for comparison or cut'n'paste content form one to another.
--
Anthony Jones - MVP ASP/ASP.NET
Jun 27 '08 #7
Anthony Jones wrote:
window.open(url, "_blank", "toolbar=no, menubar=no, location=no,
scrollbars=no")
All of which I can override in my browser.

To see this in action, open such a window in Firefox with the [Web
Developer] extension installed. Right-click in the "featureless" window and
select [Web Developer] --[Miscellaneous] --[Show Window Chrome].

I agree with Adrienne. Stop wanting that. Or implement your own "window"
with some AJAX and a draggable DIV.


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Jun 27 '08 #8
Dave Anderson wrote:
Anthony Jones wrote:
>window.open(url, "_blank", "toolbar=no, menubar=no, location=no,
scrollbars=no")

All of which I can override in my browser.
.... which is something most intranet application users certainly do not
know how to do (at least the ones in the place I'm working - YMMV).

That said, I agree with your recommendation to use a div relieving you
of the hassles of dealing with users with popup blockers.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jun 27 '08 #9
"Bob Barrows [MVP]" wrote:
>All of which I can override in my browser.

... which is something most intranet application users certainly
do not know how to do (at least the ones in the place I'm working
- YMMV).
To which I assert that the OP is not worried about that set of users anyway.

Ironically enough, he could get the desired features almost for free with
the ASP.NET AJAX Toolkit. It's ironic because ASP.NET questions in here
yield mild admonishments to read before posting.

http://ajax.asp.net/ajaxtoolkit/
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Jun 27 '08 #10
Dave Anderson wrote:
"Bob Barrows [MVP]" wrote:
>>All of which I can override in my browser.

... which is something most intranet application users certainly
do not know how to do (at least the ones in the place I'm working
- YMMV).

To which I assert that the OP is not worried about that set of users
anyway.

Ironically enough, he could get the desired features almost for free
with the ASP.NET AJAX Toolkit. It's ironic because ASP.NET questions
in here yield mild admonishments to read before posting.

http://ajax.asp.net/ajaxtoolkit/

I've been thinking for some time that perhaps it's time to expand the
scope of this group to include client-side scripting questions,
especially when overlap occurs which is certainly the case with xmlhttp
issues.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jun 27 '08 #11
"Bob Barrows [MVP]" wrote:
I've been thinking for some time that perhaps it's time to
expand the scope of this group to include client-side scripting
questions, especially when overlap occurs which is certainly
the case with xmlhttp issues.
Not to mention the overall decline in the number of posts. I have long
agreed that most DHTML questions are "close enough" to warrant a response in
here, and AJAX blurs that line even more.

Contrast that with the way we routinely respond to SQL, ADO, and CDO
questions. It would get quite boring in here quite quickly without those,
and they are not really ASP topics.

I agree with Bob.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Jun 27 '08 #12
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
Dave Anderson wrote:
Anthony Jones wrote:
window.open(url, "_blank", "toolbar=no, menubar=no, location=no,
scrollbars=no")
All of which I can override in my browser.

... which is something most intranet application users certainly do not
know how to do (at least the ones in the place I'm working - YMMV).

That said, I agree with your recommendation to use a div relieving you
of the hassles of dealing with users with popup blockers.

Bob, Which pop-up blockers block the use of window.open entirely even as a
result of user events such as a mouse click?

--
Anthony Jones - MVP ASP/ASP.NET
Jun 27 '08 #13
"Dave Anderson" <NP**********@spammotel.comwrote in message
news:eY**************@TK2MSFTNGP04.phx.gbl...
Anthony Jones wrote:
window.open(url, "_blank", "toolbar=no, menubar=no, location=no,
scrollbars=no")

All of which I can override in my browser.

To see this in action, open such a window in Firefox with the [Web
Developer] extension installed. Right-click in the "featureless" window
and
select [Web Developer] --[Miscellaneous] --[Show Window Chrome].

I agree with Adrienne. Stop wanting that. Or implement your own "window"
with some AJAX and a draggable DIV.

I OTH disagree. If a user wants to put windows features back on to a window
thats fine. I don't see why thats a problem. The problem with a draggable
div (on top of the added complexity of AJAX) is that its restricted to the
client area of the existing browser window. If you wanted to allow multiple
views of various items even further complexity is needed. Window.open is
simple and effective.

--
Anthony Jones - MVP ASP/ASP.NET
Jun 27 '08 #14
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:e6**************@TK2MSFTNGP05.phx.gbl...
Dave Anderson wrote:
"Bob Barrows [MVP]" wrote:
>All of which I can override in my browser.

... which is something most intranet application users certainly
do not know how to do (at least the ones in the place I'm working
- YMMV).
To which I assert that the OP is not worried about that set of users
anyway.

Ironically enough, he could get the desired features almost for free
with the ASP.NET AJAX Toolkit. It's ironic because ASP.NET questions
in here yield mild admonishments to read before posting.

http://ajax.asp.net/ajaxtoolkit/

I've been thinking for some time that perhaps it's time to expand the
scope of this group to include client-side scripting questions,
especially when overlap occurs which is certainly the case with xmlhttp
issues.

That's easy enough just answer the client-side questions (such as this one).
;)

--
Anthony Jones - MVP ASP/ASP.NET
Jun 27 '08 #15
Anthony Jones wrote:
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>Dave Anderson wrote:
>>Anthony Jones wrote:
window.open(url, "_blank", "toolbar=no, menubar=no, location=no,
scrollbars=no")

All of which I can override in my browser.

... which is something most intranet application users certainly do
not know how to do (at least the ones in the place I'm working -
YMMV).

That said, I agree with your recommendation to use a div relieving
you of the hassles of dealing with users with popup blockers.


Bob, Which pop-up blockers block the use of window.open entirely even
as a result of user events such as a mouse click?
None that i know of. I was thinking of the use of window.open in other
e3vents.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jun 27 '08 #16

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

Similar topics

3
by: Display Name | last post by:
When this form's being submitted, two windows are opening instead of only one here is the function I'm using: function subForm(){ //insert form validation here //if form is valid, open a...
3
by: Chris | last post by:
Hi I have designed my website to fit my standard windows. I use a javascript scroller that nescitates the removal of the browser scroll bars. However if a user has an extra toolbar open in...
3
by: Steve Dorsey | last post by:
Hello I'm creating a web page that contains a flash presentation. I currently have it resizing the user's web page and placing it on the screen using this script: ...
19
by: Albretch | last post by:
Hi, client wants for a window with no toolbars to open (technical and 'esthetical' reasons) after the window, user clicks on, is being closed. I told them about security settings in browsers...
3
by: Robert Atkinson | last post by:
Does anyone know how to replace <a href="url" target="_blank"> with window.open, keeping the window settings the same, i.e. same size, same toolbars, etc. I've tried document.open, and...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
17
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I find the size of a browser window?...
3
by: Uriah Piddle | last post by:
Hi Gang, With your help, I can show a thumbnail image in a new browser window. But I would like to open the browser without all of the toolbars and sized smaller -- something like what you get...
37
by: Jan Tovgaard | last post by:
Hey everyone:) We have a critical problem, which I can see that other people also has ran into. In Internet Explorer 7 it is no longer possible to do a window.close after opening a window,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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.