Results 1 to 14 of 14
  1. #1
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript vs VBScript?

    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?
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  2. #2
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles, California, USA
    Posts
    1,734
    Thanks
    0
    Thanked 3 Times in 1 Post

    Re: Javascript vs VBScript?

    Without a doubt - Javascript! I use it all the time. You'll find it liberally sprinkled throughout the Lounge. [img]/w3timages/icons/grin.gif[/img]
    <IMG SRC=http://www.wopr.com/w3tuserpics/Eileen_sig.gif>

  3. #3
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Javascript vs VBScript?

    Eileen,

    My understanding is that you would not have any choice- as VBScript is only supported by MSIE. You have to support Netscape as well, so Javascript is your only choice- is that correct?

    How do you find cross-browser Javascript issues?
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  4. #4
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles, California, USA
    Posts
    1,734
    Thanks
    0
    Thanked 3 Times in 1 Post

    Re: Javascript vs VBScript?

    I'd never even consider *anything* VB - I hate the whole bunch of 'em. [img]/w3timages/icons/sick.gif[/img]

    Cross-browser issues are vry well dealt with - there's a very active community of Javascript addicts who always keep abreast of any problems that might arise.
    <IMG SRC=http://www.wopr.com/w3tuserpics/Eileen_sig.gif>

  5. #5
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 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/.

  6. #6
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    PA
    Posts
    246
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Javascript vs VBScript?

    Javascript is also more secure. Almost all of the Outlook security issues can be traced to a VBScript feature that intentionally does not exist in JavaScript.

  7. #7
    navir
    Guest

    Re: Javascript vs VBScript?

    The key point is using script on an IE-only intranet.

    It's correct that JavaScript is applicable to IE, NN, and other browsers. It's the logical choice when users can use more than one browser. (Keep in mind 85% of all IntERnet users use IE.)

    But on a corporate intranet, where IE is the only browser, VBscript is a reasonable alternative. The only thing arguing against it is IF some day IE were no longer to be the corporate browser, you'd have to convert all your scripts.

    But from a standards point of view, JavaScript is much more like ECMAScript, the standard for the WWW. Unless there's a compelling reason to use VBScript rather than JavaScript, stick with JavaScript.

  8. #8
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Altnau, Thurgau, Switzerland
    Posts
    447
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Javascript vs VBScript?

    [img]/w3timages/icons/question.gif[/img]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.

  9. #9
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Javascript vs VBScript?

    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.

  10. #10
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles, California, USA
    Posts
    1,734
    Thanks
    0
    Thanked 3 Times in 1 Post

    Re: Javascript vs VBScript?

    ...and that said, unless you're a Microsoft shop, go with Javascript. And even then... If you look at Microsoft's own sites, you'll find them full of JScript!
    <IMG SRC=http://www.wopr.com/w3tuserpics/Eileen_sig.gif>

  11. #11
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Javascript vs VBScript?

    That's what finally convinced me to go Javascript.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  12. #12
    2 Star Lounger
    Join Date
    Feb 2001
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Javascript vs VBScript?

    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

  13. #13
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Javascript vs VBScript?

    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?
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  14. #14
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    PA
    Posts
    246
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Javascript vs VBScript?

    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 <A target="_blank" HREF=http://developer.netscape.com/tech/javascript/index.html>http://developer.netscape.com/tech/j...ipt/index.html</A>. I downloaded it there a while back, but they may have since moved it.

    Last check out this article <A target="_blank" HREF=http://www.webreview.com/2000/10_06/webauthors/10_06_00_1.shtml>http://www.webreview.com/2000/10_06/webaut...0_06_00_1.shtml</A>, which gives you step by step instructions on building your own de######.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •