Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP VBscript vs Jscript

Reply
Thread Tools

ASP VBscript vs Jscript

 
 
Harag
Guest
Posts: n/a
 
      12-26-2003
Hi All.

I'm stating out doing some web developing. I was wondering which of
the server side languages should I concentrate on and learn.

I Know CSS, HTML, T-SQL

I can look at the client javascript code and work out what it does but
I can't really write it from scratch.

I know mainly VBscript.

I was wondering should I drop VBscript and learn Jscript then code
both the client & server code in Javascript/Jscript

I have a couple "CLASS" files in VBscript and was wondering how does
Jscript do this ?

What books should I get to learn server side Jscript? is it the same
as client side? or is there a lot of differences.

Thanks for any help, pros & cons.

Al.
 
Reply With Quote
 
 
 
 
TsiuWeng Ng
Guest
Posts: n/a
 
      12-26-2003
Hi,


http://www.heferito.com/javascriptVSvbscript.asp
maybe this link might be useful to you

Regards,
TsiuWeng

Harag <> wrote in message news:<>. ..
> Hi All.
>
> I'm stating out doing some web developing. I was wondering which of
> the server side languages should I concentrate on and learn.
>
> I Know CSS, HTML, T-SQL
>
> I can look at the client javascript code and work out what it does but
> I can't really write it from scratch.
>
> I know mainly VBscript.
>
> I was wondering should I drop VBscript and learn Jscript then code
> both the client & server code in Javascript/Jscript
>
> I have a couple "CLASS" files in VBscript and was wondering how does
> Jscript do this ?
>
> What books should I get to learn server side Jscript? is it the same
> as client side? or is there a lot of differences.
>
> Thanks for any help, pros & cons.
>
> Al.

 
Reply With Quote
 
 
 
 
freaky friday
Guest
Posts: n/a
 
      12-26-2003
Use what you're comfortable with. There's really no clear advantage to
using one over the other.

However I will mention that the whole "use the same language in both
client-side and server-side" argument doesn't carry a lot of water. In
fact, I think it contributes to far more confusion than good.



"Harag" <> wrote in message
news:...
> Hi All.
>
> I'm stating out doing some web developing. I was wondering which of
> the server side languages should I concentrate on and learn.
>
> I Know CSS, HTML, T-SQL
>
> I can look at the client javascript code and work out what it does but
> I can't really write it from scratch.
>
> I know mainly VBscript.
>
> I was wondering should I drop VBscript and learn Jscript then code
> both the client & server code in Javascript/Jscript
>
> I have a couple "CLASS" files in VBscript and was wondering how does
> Jscript do this ?
>
> What books should I get to learn server side Jscript? is it the same
> as client side? or is there a lot of differences.
>
> Thanks for any help, pros & cons.
>
> Al.



 
Reply With Quote
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      12-26-2003
If you plan on using Microsoft's web parts (forget the actual name for the
annoying little ASP scripts it installs), you are better to learn JScript,
as these snippets are all coded in JScript. Why is this important? Every
time the interpreter switches from VBScript to JScript, you get a perf
penalty. If you code in VBScript, you are more likely to encounter numerous
switches than you are with JScript (which will be 0 switches).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Harag" <> wrote in message
news:...
> Hi All.
>
> I'm stating out doing some web developing. I was wondering which of
> the server side languages should I concentrate on and learn.
>
> I Know CSS, HTML, T-SQL
>
> I can look at the client javascript code and work out what it does but
> I can't really write it from scratch.
>
> I know mainly VBscript.
>
> I was wondering should I drop VBscript and learn Jscript then code
> both the client & server code in Javascript/Jscript
>
> I have a couple "CLASS" files in VBscript and was wondering how does
> Jscript do this ?
>
> What books should I get to learn server side Jscript? is it the same
> as client side? or is there a lot of differences.
>
> Thanks for any help, pros & cons.
>
> Al.



 
Reply With Quote
 
freaky friday
Guest
Posts: n/a
 
      12-26-2003
> penalty. If you code in VBScript, you are more likely to encounter
numerous
> switches than you are with JScript (which will be 0 switches).


what are you talking about? switches to and from what?


 
Reply With Quote
 
Scott
Guest
Posts: n/a
 
      12-26-2003

I agree that you should use what you're comfortable with,
but what if you client is using JScript/JavaScript and not
VBScript? What do you do then?

I'm in a shop where JavaScript and VBScript are both being
used so I have a choice, but the client wants us to focus
on JavaScript. The claim is that JavaScript is more
robust than VBScript, but I tend to disagree. I think
both have their strengths and weaknesses for different
things.

I would be curious to know also what books are good to
learn JavaScript from, since I have extensive VB
experience and very little ASP experience. I will also be
taking C# & Advance VB.net college classes in January, and
I was curious to know in all three of these scripting
languages are part of the .Net framework?


>-----Original Message-----
>"Harag" <> wrote in

message
>news:.. .
>> Hi All.
>>
>> I'm stating out doing some web developing. I was

wondering which of
>> the server side languages should I concentrate on and

learn.
>>
>> I Know CSS, HTML, T-SQL
>>
>> I can look at the client javascript code and work out

what it does but
>> I can't really write it from scratch.
>>
>> I know mainly VBscript.
>>
>> I was wondering should I drop VBscript and learn

Jscript then code
>> both the client & server code in Javascript/Jscript
>>
>> I have a couple "CLASS" files in VBscript and was

wondering how does
>> Jscript do this ?
>>
>> What books should I get to learn server side Jscript?

is it the same
>> as client side? or is there a lot of differences.
>>
>> Thanks for any help, pros & cons.

>
>I would suggest that if you already know VBScript, then

continue coding with
>what makes you comfortable. I suspect the majority of

ASP pages are written
>using VBScript (which, btw, is the default scripting

language unless changed
>on the server). I know this doesn't completely answer

your questions, but
>my suggestion is work with what you are most comfortable

with.
>
>Regards,
>Peter Foti
>
>
>.
>

 
Reply With Quote
 
Scott
Guest
Posts: n/a
 
      12-26-2003
Thanks Peter.


>-----Original Message-----
>"Scott" <> wrote in

message
>news:004f01c3cbe3$f09fb900$...
>>
>> I agree that you should use what you're comfortable

with,
>> but what if you client is using JScript/JavaScript and

not
>> VBScript? What do you do then?

>
>Well, if you're designing for a client that specifically

wants/needs
>JavaScript/JScript instead of VBScript, there's not much

you can do about
>that. Many clients (IMO) don't know about the language

that runs the ASP
>application, but if they specifically request JavaScript,

then you have to
>give them what they want I suppose (or try to talk them

into letting you
>code with VBScript, or tell them you can't meet their

needs if you can't do
>it).
>
>> I'm in a shop where JavaScript and VBScript are both

being
>> used so I have a choice, but the client wants us to

focus
>> on JavaScript. The claim is that JavaScript is more
>> robust than VBScript, but I tend to disagree. I think
>> both have their strengths and weaknesses for different
>> things.

>
>Yes and no. JavaScript probably is a little more robust

than VBScript. But
>the differences in an ASP environment are really not

enough to put any real
>distance between the two options, and for the most part

you should be able
>to do pretty much the same things with either language.

And yes, they each
>have strengths and weaknesses... for example, if you need

to do any sort of
>string manipulation, VBScript will probably be quicker

and easier to write
>than JavaScript equivalents. But if the customer

insists, there's not much
>you can do about it. If you have other guys in the shop

that do JavaScript,
>then perhaps they should take this job.
>
>
>> I would be curious to know also what books are good to
>> learn JavaScript from, since I have extensive VB
>> experience and very little ASP experience.

>
>The O'Reilly book "JavaScript: The Definitive Guide" is a

great book, both
>for learning and as a reference.
>
>> I will also be
>> taking C# & Advance VB.net college classes in January,

and
>> I was curious to know in all three of these scripting
>> languages are part of the .Net framework?

>
>C#, VB.NET and JScript.NET are all languages that can be

used with the .NET
>Framework.
>Good luck,
>
>Peter
>
>
>.
>

 
Reply With Quote
 
Chris Barber
Guest
Posts: n/a
 
      12-26-2003
I used to be an ASP VBScript developer until a similar thread a few weeks
ago.

I tried using JScript in server-side ASP and since then I've dropped
VBScript entirely for web stuff since I can now code an entire library set
of functions and use them at both the server and client side. some of these
library routines are pretty complex and having to do them both ways was
beginning to get on my nerves. One such library is a couple of JScript
objects (using prototype etc.) that converts coordinate systems from LatLong
to UK National Grid and back.

Another one that I've been working on is a single JScript include file that
allows XSLT processing to HTML at either the server or the client without
any changes to code - it works so far (OK - there are a couple of minor
gotchas to work around).

So, all I can really say here is that keep VBScript under your belt but for
anything web oriented then spend the few minutes to ponder if an all JScript
solution will help reduce duplication.

Side Note:
I have to say that I'm unimpressed with the lack of intellisense for JScript
objects within Interdev - I really like the way that it does it for Class
definitions in VBScript and oh how I wish it were so with JScript objects!

Cheers,

Chris.

"Harag" <> wrote in message
news:...
Hi All.

I'm stating out doing some web developing. I was wondering which of
the server side languages should I concentrate on and learn.

I Know CSS, HTML, T-SQL

I can look at the client javascript code and work out what it does but
I can't really write it from scratch.

I know mainly VBscript.

I was wondering should I drop VBscript and learn Jscript then code
both the client & server code in Javascript/Jscript

I have a couple "CLASS" files in VBscript and was wondering how does
Jscript do this ?

What books should I get to learn server side Jscript? is it the same
as client side? or is there a lot of differences.

Thanks for any help, pros & cons.

Al.


 
Reply With Quote
 
Chris Barber
Guest
Posts: n/a
 
      12-26-2003
It does carry a lot of water but like all such statements needs to be taken
in context.

I (this is my personal experience) found that the switch from ASP VBScript
to JScript was easy and also gave a lot of flexibility in code reuse since
you can use the same .js file for both server-side and client-side usage
(within reason of course) in a lot of instances negating the need to code
things twice (on as VBScript and one as JScript).

Admittedly there are some instances where JScript is more difficult (some
specific cases with COM spring to mind) but these are generally easy to deal
with and a small foray into VBScript for a few lines is no big deal).

The support for arrays in JScript far outstrips VBScript (in my opinion
again) and if only for that I consider my own switch to ASP JScript to be
the right choice.

Database stuff is as-easy with JScript as it is with VBScript - I have a
number of working solutions quite happily using ADO / SQL Server stored
procedures etc. with no apparent ill effects.

My only bugbear with JScript is actually a go at Interdev - why oh why is it
not possible to have intellisense for JScript objects created using the
object.prototype functionality? No need to comment cos I know it ain't gonna
happen any time soon (does it do this in .NET perhaps?).

Chris Barber.

"freaky friday" <> wrote in message
news:e%...
Use what you're comfortable with. There's really no clear advantage to
using one over the other.

However I will mention that the whole "use the same language in both
client-side and server-side" argument doesn't carry a lot of water. In
fact, I think it contributes to far more confusion than good.



"Harag" <> wrote in message
news:...
> Hi All.
>
> I'm stating out doing some web developing. I was wondering which of
> the server side languages should I concentrate on and learn.
>
> I Know CSS, HTML, T-SQL
>
> I can look at the client javascript code and work out what it does but
> I can't really write it from scratch.
>
> I know mainly VBscript.
>
> I was wondering should I drop VBscript and learn Jscript then code
> both the client & server code in Javascript/Jscript
>
> I have a couple "CLASS" files in VBscript and was wondering how does
> Jscript do this ?
>
> What books should I get to learn server side Jscript? is it the same
> as client side? or is there a lot of differences.
>
> Thanks for any help, pros & cons.
>
> Al.




 
Reply With Quote
 
Harag
Guest
Posts: n/a
 
      12-27-2003

The main reason I'm thinking of switching is that the client side code
is all javascript that I downloaded from "javascriptsource.com" and
altered to suit. I understand the basics of javascript to make the
changes I just don't know it fully as I code mostly VBscript during a
working day.

I don't have a "boss" or "client" to tell what to code in as its for
my own business so thats not really important.

For my project I'm still in the pen & paper design phase so not done
much coding. I do have several "VBscript Class" files that will need
to be changed.

Thanks for the info and points.

Al

On Fri, 26 Dec 2003 21:56:26 -0000, "Chris Barber"
<> wrote:

>I used to be an ASP VBScript developer until a similar thread a few weeks
>ago.
>
>I tried using JScript in server-side ASP and since then I've dropped
>VBScript entirely for web stuff since I can now code an entire library set
>of functions and use them at both the server and client side. some of these
>library routines are pretty complex and having to do them both ways was
>beginning to get on my nerves. One such library is a couple of JScript
>objects (using prototype etc.) that converts coordinate systems from LatLong
>to UK National Grid and back.
>
>Another one that I've been working on is a single JScript include file that
>allows XSLT processing to HTML at either the server or the client without
>any changes to code - it works so far (OK - there are a couple of minor
>gotchas to work around).
>
>So, all I can really say here is that keep VBScript under your belt but for
>anything web oriented then spend the few minutes to ponder if an all JScript
>solution will help reduce duplication.
>
>Side Note:
>I have to say that I'm unimpressed with the lack of intellisense for JScript
>objects within Interdev - I really like the way that it does it for Class
>definitions in VBScript and oh how I wish it were so with JScript objects!
>
>Cheers,
>
>Chris.
>
>"Harag" <> wrote in message
>news:.. .
>Hi All.
>
>I'm stating out doing some web developing. I was wondering which of
>the server side languages should I concentrate on and learn.
>
>I Know CSS, HTML, T-SQL
>
>I can look at the client javascript code and work out what it does but
>I can't really write it from scratch.
>
>I know mainly VBscript.
>
>I was wondering should I drop VBscript and learn Jscript then code
>both the client & server code in Javascript/Jscript
>
>I have a couple "CLASS" files in VBscript and was wondering how does
>Jscript do this ?
>
>What books should I get to learn server side Jscript? is it the same
>as client side? or is there a lot of differences.
>
>Thanks for any help, pros & cons.
>
>Al.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: ASP JScript & VBScript interoperability Andrew Wan ASP General 1 06-15-2007 05:22 PM
What is Server-Side Jscript (not Jscript.NET)? Maxwell2006 ASP .Net 5 03-07-2006 05:28 AM
JScript.Net (JScript 7.0) is official documented language VK Javascript 4 01-12-2006 06:48 PM
Porting from JScript to JScript.Net - compiler error Jon Maz ASP .Net 4 09-09-2004 10:24 AM
Which to Learn: Javascript, Jscript, JScript.NET, ECMA 262 (3rd ed)? John Bentley Javascript 14 02-05-2004 06:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57