PDA

View Full Version : VbScript, like Javascript: Open New window


Morgoth
03-29-2003, 04:38 AM
Hey,

The subject really explains what I am trying to do...
So does anyone know how I can make VbScript open up a new window with certain properties?? (status bar gone, forward, back, history, etc.. buttons gone... Etc...)

Can this be done with VBScript?


Thank you...

raf
03-30-2003, 03:13 PM
here you go
http://www.cs.uga.edu/~dme/csci4900/Lecture2.html
only works in IE though ....

whammy
03-31-2003, 03:49 AM
Ewww! Why would you *ever* use VBScript to do that?

I use a lot of VBScript (as a matter of fact, I depend on it at work, at least for the time being - but I only use VBScript files for stuff like file parsing over the network using FileSystemObject, etc., or perhaps updating a registry key over the LAN (that's another thing - a lot of the code that you can use with VBScript and/or ActiveX is very unsafe!)) - and that's something I would NEVER do. JavaScript is so much better for this.

.NET languages (C# AND VB to start with) even produce client-side JavaScript; not VBScript! - so that should tell you something (i.e. perhaps Microsoft realizes they got whipped when it comes to client-side scripting, and they are moving on to better pastures). ;)

Morgoth
03-31-2003, 06:33 AM
Yeah, I went with javascript...
After looking at a few VBscript scripts, I got a little tired, so I decided just to use Javascript...

http://www.codingforums.com/showthread.php?s=&postid=85910

raf
03-31-2003, 06:34 AM
The Whammy-.Net campaign !!:D

It kinda works (i'm thinking about looking in to it, as soon as i've got PHP down to a fine art). Just for the careerprospects, you know ...

I don't wonder why he needs/asked for it. If it exists; it'll have some use, i think.

whammy
04-01-2003, 12:13 AM
Well, I just wouldn't use VBScript for ANYTHING client-side, since it's only supported by IE browsers.

Apparently Microsoft agrees (they pretty much have to, though - no developer worth 2¢ would use .NET if it only worked in IE!); that's really the only reason why I referenced javascript being used with .NET. ;)

Morgoth
04-01-2003, 02:31 AM
I didn't know it only works for IE...
I should of known though...

Bad Morgoth, Bad...