Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Opening a New Window with no toolbars etc

Reply
Thread Tools

Opening a New Window with no toolbars etc

 
 
anon
Guest
Posts: n/a
 
      05-10-2008
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

 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      05-10-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)
 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      05-10-2008
"anon" <> wrote in message
news:5341923F-E55A-431E-9A68-...
> 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


 
Reply With Quote
 
Adrienne Boswell
Guest
Posts: n/a
 
      05-11-2008
Gazing into my crystal ball I observed "anon" <> writing in
news:5341923F-E55A-431E-9A68-:

> 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

 
Reply With Quote
 
Anthony Jones
Guest
Posts: n/a
 
      05-11-2008
"Adrienne Boswell" <> wrote in message
news:Xns9A9B841E123AEarbpenyahoocom@69.28.186.121. ..
> Gazing into my crystal ball I observed "anon" <> writing in
> news:5341923F-E55A-431E-9A68-:
>
> > 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


 
Reply With Quote
 
Adrienne Boswell
Guest
Posts: n/a
 
      05-13-2008
Gazing into my crystal ball I observed "Anthony Jones"
<> writing in
news:#:

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

 
Reply With Quote
 
Anthony Jones
Guest
Posts: n/a
 
      05-13-2008

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


 
Reply With Quote
 
Dave Anderson
Guest
Posts: n/a
 
      05-14-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.


 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      05-14-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.


 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      05-14-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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening new browser window without toolbars Uriah Piddle ASP .Net 3 11-10-2006 09:20 PM
Open new browser window with no toolbars James M. Haberman HTML 5 01-10-2005 11:40 PM
trying to close a window and open a new one without toolbars Albretch Java 18 09-29-2004 08:41 PM
How to open Popup from hyperlink and not show toolbars, favorits, etc moondaddy ASP .Net 2 07-27-2004 10:27 PM
Re: hiding toolbars etc Bob Calvanese HTML 2 07-06-2003 05:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57