|
Er... because that uses JavaScript, when I specifically said only VBScript?
|
|
|
|
|
I'm currently working for a client that requested all server and client side code for their intranet site be done with vbscript.
While that isn't really important to you, I can say that most examples you see of client side code are done in javascript but the syntax is usually almost identical in vbscript barring the language differences like variable declarations, curly braces and line terminators, if you play around a bit I'm sure you can get a pure vbscript window.open to work just fine.
In fact, I'll make it really easy for you, took the javascript code from the dhtml reference in the message above, took off the line ending ";" and removed the parentheses because you get an error about calling a subroutine with parentheses. It's usually about that easy to translate javascript to vbscript because the object model is the same for dhtml you just have to eliminate the language differences.
Sub button1_onclick
window.open "layout.htm",null,"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no"
End Sub
Good Luck!
Jon
|
|
|
|
|
Wow, I owe you an apology. I originally thought you had misunderstood my intentions... especially when that article had the example in JS {:v)
And knock me down with a feather, it works... I'm impressed. I'm just baffled as to why it is so hard to find information on it when I look {:v(
So thankyou.
|
|
|
|
|
Actually, I owe Andy an apology, since he was the original replyee and not yourself {:v)
Oh, it's been a funny day.
|
|
|
|
|
I agree with you, it's very hard to find any decent info in regards to using vbscript on the client side. It most definetly relates to cross-browser issues. When dealing with intranet's there is a legitimate argument to be made for using vbscript on both the client and server and not mixing languages when you're sure that everyone is using IE.
Hopefully you can see that the translation is pretty easy. I haven't found any javascript yet that couldn't be reworked into vbscript with a little bit of effort.
Good luck,
Jon
|
|
|
|
|
Thankyou, that's a very interesting discovery. I have to admit I don't intend to use VBScript client side because of the Netscape issue, but in this instance I wanted to use it to demonstrate a variety of Web programming 'languages', including both scripts, ActiveX, Java, DHTML (JS), etc.
|
|
|
|
|
Have fun!
    Sub Yar
        window.open "crap.htm"
    End Sub
Andy Gaskell, MCSD
|
|
|
|
|
Thanks to Jon, I have now realised that this also works in VBS... that article being in JS threw me for a loop.
There's an apology (to you) somewhere above this line, even though I mistakenly aimed it at Jon {:v)
|
|
|
|
|
We're developing our first internet application and there's something I'd like to know. The problem is that when debugging asp in the server, only one person can be debugging at a time. What I'd like to know is if there's any way to know (using Visual C++) if somebody is debugging at the moment, because we're having problems when two persons try to debug at the same time.
Thanks for the answer,
|
|
|
|
|
It's the first time we're developing an internet application and I've got a question about debugging. Since only one person can be debugging the application at the server, I'd like to know if there's any way to ask through Visual C++ the server if he's debugging at the moment.
Thanks for the answer,
|
|
|
|
|
Is there any way to register a control for use with ASP on a remote system?
A client of mine has a hosted web site that I would like to use ASPTear on, but the ISP does not provide this control. I might be able to convince them to register it for me, but I would rather not fight that battle.
This site is in a shared hosting environment on Win2k.
I know how to register controls on my own servers with regsvr32.exe, but obviously I do not have terminal or console access to this server.
Any ideas on a tricky way to get this done? With ASP maybe? Or some other way?
TIA,
Jason Jystad
Cito Technologies
www.citotech.net
>---------------------------------------------------------------------------<
There are no physicists in the hottest parts of hell, because the existence of a "hottest part" implies a temperature difference, and any marginally competent physicist would immediately use this to run a heat engine and make some other part of hell comfortably cool. This is obviously impossible.
-- Richard Davisson
>---------------------------------------------------------------------------<
|
|
|
|
|
Unless your ISP has left open many security holes, you will not be able to register the control on their box without them doing it for you.
The reason that ISPs will not allow users on a shared box to install their own controls, is that the control can potentially create security holes, read and write information that belongs to the others who share the server, and crash the server.
So, ISPs generally want to make sure that the control is a well-known product that will not cause any problems.
This is where .NET changes the rules. Since .NET controls cannot crash the server (in theory) and the ISP can limit their access. These controls can simply be copied to the server (no registration required) and they will work.
In conclusion... No can do for ASP... viva la .NET!!!
Troy
|
|
|
|
|
Yeah, that is what I figured. I admit, I was kinda hoping some smart-alec would post some less than entirely wholesome ways to try.
I mean, if they leave me a security whole why not use it.
Ah, well.
I can probably figure out a truly screwy way to pull it off without the control.
Thanks!
Jason Jystad
Cito Technologies
www.citotech.net
>------------------------------------------------<
"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
-- Dirk Gently (Douglas Adams)
>------------------------------------------------<
|
|
|
|
|
|
|
I consider myself a novice at this stuff, but I know
VBScript semi-well. I am just beginning to learn
JScript.
I am wondering what are some important things that
one language can do that the other can't. For one
thing, I know that it is quite easy to open a new
browser window (and set various properties of that
window) with JScript but not VBScript.
What are some of the things that one language
does better, more easily, etc than the other?
I appreciate your comments.
|
|
|
|
|
Good exception handling in JScript.you can use try, catch blocks.
In VB scripts you have only on error resume next statement.
It is easier to use VBscript to access COM objects . When we use JScript special care has to be taken for handling datatypes .for ex arrays.
|
|
|
|
|
Also w.r.t COM
JScript does not support more than one IDispatch interface (you always get the default)
whereas VBScript you can
|
|
|
|
|
Ok, if i understood you well... you're wondering which language could be better, right?
Then, from a newbie to other, get this on your mind:
Don't get tied to only one of those! Use as many languages as you know, while they can co-exist. Don't forget to debug properly any work you do... It will take you away many sleeping hours, but in the end it will be worth!
|
|
|
|
|
IE Browser to HTML source maping.
Dear Sir,
In Microsoft browser ,I want to know
how to get the char offset in the HTML source when cliking by mouse in the
control? I found some ways to get the X,Y point of mouse position , or the
word I clicked on as text, but could not find a way to get the corresponding
char offset in the html source.
With regards
Ibrahim M. Sobh
|
|
|
|
|
I do not believe what you are looking for is possible.
Why don't you explain what you want to accomplish instead. I may be able to find other ways to accomplish your task.
Troy
|
|
|
|
|
Anyone know how I can stop browsing of my images directory.
I know I can place an index.html in it to redirect somewhere else, but is there a way to redirect people if they type in direct image URL, rather than a html page requesting in. I just want to stop people viewing individual images, I'd just like to display the relevant html page that displays it.
Thanks for any help
|
|
|
|
|
If you can browse your images directory, that must mean you have directory browsing enabled!!! This is generally a bad thing!!!
To disable directory browsing bring up your IIS manager, bring up the property sheets for your web site,go to the Home Directory tab then find the directory browing allowed check box .... uncheck.
Once unchecked directory browsing is not allowed
Troy
|
|
|
|
|
I want to link to a install file (install.exe) but I don't want the download popup. I want to force it to "Execute File". Is it possible to do that?
Thanks!
Steve
|
|
|
|
|
What are the different state management techniques in ASP?
For Ex :
1) Use Cookies
2) Use Session variables
3) Use hidden form variables
Others ?...
&
How does ASP Session variable work ? Does it send some cookie to the browser ?
|
|
|
|