Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Windows


Message #1 by "Alan Grobert" <alangrobert@h...> on Thu, 13 Jul 2000 11:30:57 EDT
Thanks. It works great. Basically you need to learn a little jscript
and the syntac of using it within your asp vbscript. I looked at the
microsoft site http://msdn.microsoft.com/workshop/index/default.asp
which is really great to learn indepth functionality of all asp
coding. The crucial part for me was learning the 
href="javascript:whateverfunction" syntacs.
Thanks again.
Alan
P.S. If you learn more send me a line.


>From: danielw@w...
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] Re: Windows
>Date: Thu, 13 Jul 2000 17:28:28
>
>On 07/13/00, ""Alan Grobert" <alangrobert@h...>" wrote:
> > Can ASP manipulate windows that the web pages appear in? And, how can I
>open a link on one page so the new page appears in a separate window while
>the original stays open?
>
>Thanks,
>
>Alan
>
>No, it can't Alan, which is why I transfered you message on here ;-)
>
>However, the Jiviscrit that does this is very simple indeed., and I've just
>done something just like this for the ASP+ link on the ASP page. If you
>take a look at the book cover of "A Preview of Active Server pages+",
>you'll see its a link to the Wrox homesite, which throws open a new window
>for the link (this is because this site, P2P, runs within frames and I
>didn't want the new site to open inside the frame, as it was doing). Here's
>the code I put into the page (about 30 minutes ago):
>
><script language="Javascript">
>
><!--//open new window for Wrox ASP books
>function launch()
>        {
>        open('http://www.wrox.com/Consumer/Default.asp?Category=ASP')
>        }
>
></script>
>
>         <a href="Javascript:launch()"><img src="4753.gif"
>         alt="Link to Wrox ASP books website" width="120"
>         height="151"></a>
>
>The function is a one-liner call to the open method. You can shove all
>sorts of other settings like scrollbars=no, and location=yes, et cetera
>into the brackets of the open call, but that's the basic syntax. The href
>becomes a call to the function. Obviously, this is for an image that is a
>link, but you could replace it all with text, as in:
>
>         <a href="Javascript:launch()">Hit this blue text, dude!</a>
>
>HTH
>Daniel Walker
>Wrox Press
>
>---
>Wrox Professional Wireless Developer Conference, Amsterdam, July 10-12. 
>Covering application of WAP, XML, ASP, Java and C++ to wireless computing, 
>choose from 40+ technical sessions delivered by industry experts: 
>http://www.wroxconferences.com/ConferenceHome.asp?ConfID=9
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


  Return to Index