Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2006, 09:34 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

It has its quarks like any other technology but, by and large, it does what you need it to do. But, eventuall, you have those situations that you run into that you need a work or around or a hack to make the framework do what you need it to do!

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old December 15th, 2006, 03:12 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

.... thank you for the script, dparsons. But how can the variable "sJavaScript" hold three different values if case "konto" becomes thrue;

      sJavaScript = "<script language=javascript>"
      sJavaScript = "window.open('yourpage.asp','windowname');"
      sJavaScript = "</scr" & "ipt>"

I am trying to learn, my questions may be odd...

Mvh
grstad
 
Old December 15th, 2006, 10:03 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Because its inside of a SELECT statement. At run time, sJavaScript will only have 1 value assoicated with it depending on what the value of Radio is.

Think of a select case being similar to an IF statement.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old December 30th, 2006, 01:34 PM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hei!

This maight be the answer to my own question;

<A href="javascript:NewWindow=window.open
(some.asp','_blank','width=100,height=100,menubar= 0,left=700,top=300');NewWindow.focus()">
Any text!
</a>

The final clue is NewWindow.focus().

I do hope it is useful for you too!

Mvh
grstad :)
 
Old December 31st, 2006, 01:29 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

It seems that we misunderstood your question. window.open will spawn a new window for you, window.focus() simply gives focus to the new window. but glad you figured out your problem.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature





Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing parent window from child window arnabghosh Javascript How-To 1 December 26th, 2007 01:18 AM
Centering Popup window & Blur Parent window jkusmanto Javascript How-To 0 May 25th, 2007 03:19 AM
Window refresh and window pop up in Java Script Aleksandra Javascript How-To 2 March 2nd, 2007 06:47 PM
closed parent window when opened child window jaiwin Javascript How-To 0 October 8th, 2006 12:54 PM
Close Parent window on opening child window pkdev Javascript How-To 8 April 11th, 2004 12:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.