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

December 14th, 2006, 09:34 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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
|
|

December 15th, 2006, 03:12 AM
|
|
Friend of Wrox
|
|
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
.... 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 
|
|

December 15th, 2006, 10:03 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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
|
|

December 30th, 2006, 01:34 PM
|
|
Friend of Wrox
|
|
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 :)
|
|

December 31st, 2006, 01:29 PM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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
|
|
 |