tags:

views:

32

answers:

3

hi all, in fact i have piece of vbscript and i want to use it on my website, i beleive that vbscript can only work on IE but my question Vbscript can work for people that not on my intranet? for example wwww.stackoverflow.com has a function written in vbscript , this is mean this function can excecuted for its visitors and without any limation (security)? or only for pcs that on the stackoverflow network?

A: 

Using VBScript on a public site is fine, so long as you are willing to accept that it will only run for those using IE.

The reason it is not commonly used is exactly because it will only run on IE. Most developers want their code to run on as many browsers as possible, so they use javascript.

In general, I would suggest not to use VBScript on the client side.

Oded
A: 

VBScript is not used by StackOverflow, the fact that it works only in IE, it should be avoided, use Javascript instead.

Sarfraz
I think he provided StackOverflow as a fictitious example. It's possible to use VBScript as an aid to Javascript. Any functions declared in VBScript are available to Javascript scripts. Agreed that it should be avoided in general, but it can be used to provide helper functions to IE using methods like `execScript`. I've used techniques like this before, albeit in IE-only applications.
Andy E
@Andy E's head: Agreed and that is interesting indeed to use it for IE-specific stuff something I had never considered before but in the future i will for sure. Thanks
Sarfraz
A: 

hi, thanu u for all answers but my question vbscript can be executed without any restriction? for example pop-up window cannot be excecuted and its alert user before open it right? ok what about vbscript ? its can be executed without alert user about it? or its blocked and alert user to execute or not exceute it ?

thank u very much again

sarkolena