From: anon on
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

From: Evertjan. on
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)
From: Anthony Jones on
"anon" <anon(a)anon.com> wrote in message
news:5341923F-E55A-431E-9A68-C2319A76EFC0(a)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


From: Adrienne Boswell on
Gazing into my crystal ball I observed "anon" <anon(a)anon.com> writing in
news:5341923F-E55A-431E-9A68-C2319A76EFC0(a)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

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