.vbs vs .vbs inside .htm

rodchar
07-12-2002, 09:07 AM
Hi all,

Is there any difference between running VBScript as .vbs and VBScript within .htm page? as far as performance?

I mean, does one run in the background and the other interactive?

When we run it under .htm it presents the user with an information msg saying script causing browser to run to slow and stops the script until the user presses ok.

Thanks for any help in advance,
Rodney

Thinker
07-12-2002, 09:43 AM
It will probably be slower in the browser, and there are additional
security settings to be changed if doing certain things. Also, IE is
a huge resource hog. If all you need is a local vbscript program
to do some work, just run it as a .VBS.

rodchar
07-12-2002, 11:22 AM
Well when it runs as .vbs there's no indication for the user to see that the script is running. We've been dablling with the progress bar, is that something we can incorporate somehow?

Rodney

Thinker
07-12-2002, 11:42 AM
I see, that is a problem.
You would have to create an ActiveX component that had a
visual interface and could be instantiated with CreateObject.
I don't think controls like progressbars can be created and made
visual on their own. But if you had to go to the effort of making
a progressbar form that could be used from VBScript, it would be
about as easy to just do the whole job from VB instead. (Unless
you need a bunch of scripts that can all use your progressbar
component in the same way.)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum