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

Re: Opening a New Window with no toolbars etc by Evertjan

Evertjan
Sat May 10 06:09:59 CDT 2008

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)

Re: Opening a New Window with no toolbars etc by Anthony

Anthony
Sat May 10 15:00:15 CDT 2008

"anon" <anon@anon.com> wrote in message
news:5341923F-E55A-431E-9A68-C2319A76EFC0@microsoft.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



Re: Opening a New Window with no toolbars etc by Adrienne

Adrienne
Sun May 11 14:59:34 CDT 2008

Gazing into my crystal ball I observed "anon" <anon@anon.com> writing in
news:5341923F-E55A-431E-9A68-C2319A76EFC0@microsoft.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


Re: Opening a New Window with no toolbars etc by Anthony

Anthony
Sun May 11 15:58:14 CDT 2008

"Adrienne Boswell" <arbpen@yahoo.com> wrote in message
news:Xns9A9B841E123AEarbpenyahoocom@69.28.186.121...
> Gazing into my crystal ball I observed "anon" <anon@anon.com> writing in
> news:5341923F-E55A-431E-9A68-C2319A76EFC0@microsoft.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



Re: Opening a New Window with no toolbars etc by Adrienne

Adrienne
Mon May 12 21:20:16 CDT 2008

Gazing into my crystal ball I observed "Anthony Jones"
<Ant@yadayadayada.com> writing in
news:#5TH8m6sIHA.1436@TK2MSFTNGP05.phx.gbl:

> "Adrienne Boswell" <arbpen@yahoo.com> wrote in message
> news:Xns9A9B841E123AEarbpenyahoocom@69.28.186.121...
>> Gazing into my crystal ball I observed "anon" <anon@anon.com> writing
>> in news:5341923F-E55A-431E-9A68-C2319A76EFC0@microsoft.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


Re: Opening a New Window with no toolbars etc by Anthony

Anthony
Tue May 13 03:58:59 CDT 2008


"Adrienne Boswell" <arbpen@yahoo.com> wrote in message
news:Xns9A9CC4B5DE31Farbpenyahoocom@69.28.186.121...
> Gazing into my crystal ball I observed "Anthony Jones"
> <Ant@yadayadayada.com> writing in
> news:#5TH8m6sIHA.1436@TK2MSFTNGP05.phx.gbl:
>
> > "Adrienne Boswell" <arbpen@yahoo.com> wrote in message
> > news:Xns9A9B841E123AEarbpenyahoocom@69.28.186.121...
> >> Gazing into my crystal ball I observed "anon" <anon@anon.com> writing
> >> in news:5341923F-E55A-431E-9A68-C2319A76EFC0@microsoft.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



Re: Opening a New Window with no toolbars etc by Dave

Dave
Wed May 14 14:23:11 CDT 2008

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.



Re: Opening a New Window with no toolbars etc by Bob

Bob
Wed May 14 14:37:48 CDT 2008

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.



Re: Opening a New Window with no toolbars etc by Dave

Dave
Wed May 14 15:18:31 CDT 2008

"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.


Re: Opening a New Window with no toolbars etc by Bob

Bob
Wed May 14 15:41:05 CDT 2008

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.



Re: Opening a New Window with no toolbars etc by Dave

Dave
Wed May 14 15:56:31 CDT 2008

"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.


Re: Opening a New Window with no toolbars etc by Anthony

Anthony
Thu May 15 01:55:24 CDT 2008

"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:%23vAEptftIHA.552@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