Any thoughts on using Javascript vs VBscript?
If you were doing work for an Intranet with IE5 (so there’s no browser issues) which would you choose?
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » Developers, developers, developers » Web design and development » Javascript vs VBScript?
There is an ISO standard (might still be proposed, I forget its status) based on ECMA Script (ECMA 262), which is based on both JasaScript and JScript.
It seems that implementations have agreed to migrate to ECMAScript. See unofficial Javascript FAQ at http://www.jibbering.com/faq/%5B/url%5D.
I am new to web page programming but I have experience with other languages. One says C programmers can adapt to Java while the structure of many things is very similar. I know for speed and control C and C++ leave Basic in the dust (I know it takes longer to write the prog in the first place). So is there any performance differences between VB script and Javascript? Are there things that one can do with Javascript and not with VB Script. This may help in this discussion.
Personally I am going with Javascript as I don’t want to recode anything should a browser other than IE be used. After all have you never experienced the ‘Oh yes we have a corporate policy to use XXX’. Then three months later well actually we know support YYY as well due to our new acquisition.
At this time, ECMAScript is THE standard.
Javascript, JScript and ECMAScript are not quite the same, and the ECMAScript standard will be revised, likely within the next year or so. Cross platform scripts are still a moving target.
I would expect all implementations to move towards better conformance with ECMAScript.
It really depends. Is browser compatability an issue?(It doesn’t sound like it.) Have you programmed in the VBA language before? Have you programmed in C before?
If your doing client-side scripting AND your only browser is IE AND you have a VBA language background, then IMHO VBScript will be the way to go. VBScript is essentially a subset of the VBA language, so it’s easy to get up and running if you already know the VBA language.
If you have a C programming background, Javascript will probably be easier to learn as it very C like but simpler and it works in both NS and IE for client-side scripting.
I believe there’s plenty of resources on both.
Mike
Mike,
Thanks for the response.
Compatibility is not an issue- intranet, IE5.5 standard.
I’ve done heaps in VB and VBA. It was really the only thing that tempted me towards VBScript.
I’ve done miniscule C (not ++) and some Java.
But, the fact that MS do all their own site in JScript was a big push away from VBscript.
There also seemed to be a lot more resources available for Javasvcrcript on the web. It was much easier to find recipe-book solutions with JS than with VBS.
The syntax was simple; the biggest stumpling-block starting off was to learn to put urls with forward slashes rather than backward slashes.
So far, I’ve done everything without a de######. That’s been a major nuisance (most of all coming from a VB environment). Is there a good JS debugerr out there? For instance, I had understood that Front Page had something- but I know very little about FP.
Any thoughts?
Geoff,
If you have a copy of Netscape, you can debug your JavaScripts by loading the page, then, in the location box, type ‘java script:’ (make sure to include the colon, but not the quotes). This will bring up the Javascript Console which lets you know if there is a problem, and if so, the line and a brief reason. Netscape also offers a more extensive de######. Try http://developer.netscape.com/tech/javascript/index.html. I downloaded it there a while back, but they may have since moved it.
Last check out this article http://www.webreview.com/2000/10_06/webaut…0_06_00_1.shtml, which gives you step by step instructions on building your own de######.
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications