Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JavaScript for Business Website ?

0 views
Skip to first unread message

AP

unread,
Dec 31, 2009, 8:22:04 PM12/31/09
to
Is it advisable to build a business website (with users entering and
retrieving private info and monetary Paypal-type transactions and the
like) using JavaScript (in view of the fact that the code is totally
visible to users) ? Are there any examples of business websites which
are purely HTML/Javascript of do people normally use PHP or ASP.NET
instead (as the code is hidden) ? Thanks, AP.

David Mark

unread,
Jan 1, 2010, 2:24:24 AM1/1/10
to
On Dec 31 2009, 8:22 pm, AP <tian...@gmail.com> wrote:
> Is it advisable to build a business website (with users entering and
> retrieving private info and monetary Paypal-type transactions and the
> like) using JavaScript (in view of the fact that the code is totally
> visible to users) ?

Depends on what you mean. What do you plan to do with JS?

> Are there any examples of business websites which
> are purely HTML/Javascript of do people normally use PHP or ASP.NET
> instead (as the code is hidden) ?

You definitely shouldn't process payments on the front-end. ;)

AP

unread,
Jan 1, 2010, 2:49:17 AM1/1/10
to
On Jan 1, 8:24 pm, David Mark <dmark.cins...@gmail.com> wrote:
> On Dec 31 2009, 8:22 pm, AP <tian...@gmail.com> wrote:
>
> > Is it advisable to build a business website (with users entering and
> > retrieving private info and monetary Paypal-type transactions and the
> > like) using JavaScript (in view of the fact that the code is totally
> > visible to users) ?
>
> Depends on what you mean.  What do you plan to do with JS?
>

Although I am not intending to do the same thing, InstantChess.com has
many web aspects I'm interested in - many users/subscribers/payments/
players/login and storage of user data ...

But I think it uses more than just HTML/JavaScript - I can see Flash
in it as well (although I think it is there for animation purposes).

David Mark

unread,
Jan 1, 2010, 2:58:44 AM1/1/10
to
On Jan 1, 2:49 am, AP <tian...@gmail.com> wrote:
> On Jan 1, 8:24 pm, David Mark <dmark.cins...@gmail.com> wrote:
>
> > On Dec 31 2009, 8:22 pm, AP <tian...@gmail.com> wrote:
>
> > > Is it advisable to build a business website (with users entering and
> > > retrieving private info and monetary Paypal-type transactions and the
> > > like) using JavaScript (in view of the fact that the code is totally
> > > visible to users) ?
>
> > Depends on what you mean.  What do you plan to do with JS?
>
> Although I am not intending to do the same thing, InstantChess.com has
> many web aspects I'm interested in - many users/subscribers/payments/
> players/login and storage of user data ...
>
> But I think it uses more than just HTML/JavaScript - I can see Flash
> in it as well (although I think it is there for animation purposes).

I'm sure it uses back-end scripting as well. And you can certainly do
animation without Flash. ;)

Thomas 'PointedEars' Lahn

unread,
Jan 1, 2010, 9:57:26 AM1/1/10
to
AP wrote:

> Is it advisable to build a business website (with users entering and
> retrieving private info and monetary Paypal-type transactions and the
> like) using JavaScript (in view of the fact that the code is totally
> visible to users) ?

The source code is only "totally visible to users" if the programming
language is used client-side. Anyhow, you do want to validate financial
transactions server-side, regardless of the programming language.

> Are there any examples of business websites which
> are purely HTML/Javascript of do people normally use PHP or ASP.NET
> instead (as the code is hidden) ?

Yes.

> Thanks, AP.

With as little clue as this, you should not be building any business
website. <http://jibbering.com/faq/#posting>

You are welcome.


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann

Evertjan.

unread,
Jan 1, 2010, 3:26:23 PM1/1/10
to
Thomas 'PointedEars' Lahn wrote on 01 jan 2010 in comp.lang.javascript:
> AP wrote:
>> Is it advisable to build a business website (with users entering and
>> retrieving private info and monetary Paypal-type transactions and the
>> like) using JavaScript (in view of the fact that the code is totally
>> visible to users) ?
>
> The source code is only "totally visible to users" if the programming
> language is used client-side. Anyhow, you do want to validate financial
> transactions server-side, regardless of the programming language.

And what is more,
there is no reason not to use Javascript serverside.

If you enjoy Javascript, serverside Javascript
[I do it on the ASP platform] is a good choice.

Do not use Javascript or any other script clientside
for security critical applications.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

AP

unread,
Jan 1, 2010, 8:30:54 PM1/1/10
to
On Jan 2, 9:26 am, "Evertjan." <exjxw.hannivo...@interxnl.net> wrote:
>
> And what is more,
> there is no reason not to use Javascript serverside.
>
> If you enjoy Javascript, serverside Javascript
> [I do it on the ASP platform] is a good choice.
>
> Do not use Javascript or any other script clientside
> for security critical applications.
>

Thanks very much for your suggestions. I have basic knowledge of
JavaScript (client-side) - would be grateful if you could suggest
where I could learn server-side JavaScript meant for beginners (can't
find any for some reason). Does server-side JavaScript require a
special software to be installed on the server and if so, do most web
servers have it ?

David Mark

unread,
Jan 1, 2010, 8:33:36 PM1/1/10
to

I use "classic" ASP with JScript for some projects. Start with MSDN...

AP

unread,
Jan 3, 2010, 12:03:10 AM1/3/10
to
On Jan 2, 2:33 pm, David Mark <dmark.cins...@gmail.com> wrote:
> On Jan 1, 8:30 pm, AP <tian...@gmail.com> wrote:
>
>
> > On Jan 2, 9:26 am, "Evertjan." <exjxw.hannivo...@interxnl.net> wrote:
>
> > > And what is more,
> > > there is no reason not to use Javascript serverside.
>
>
> I use "classic" ASP with JScript for some projects.  Start with MSDN...
>

Is this the only way server-side JavaScript can be implemented ? I've
heard classic ASP is slowly phasing out, but I've also heard that
server-side JavaScript is slowly making an appearance, hence my
question as to whether if there's another way of doing server-side
JavaScript. Please bear with my general ignorance in this area as I've
little experience in web programming. Thanks.

David Mark

unread,
Jan 3, 2010, 1:10:07 AM1/3/10
to
On Jan 3, 12:03 am, AP <tian...@gmail.com> wrote:
> On Jan 2, 2:33 pm, David Mark <dmark.cins...@gmail.com> wrote:
>
> > On Jan 1, 8:30 pm, AP <tian...@gmail.com> wrote:
>
> > > On Jan 2, 9:26 am, "Evertjan." <exjxw.hannivo...@interxnl.net> wrote:
>
> > > > And what is more,
> > > > there is no reason not to use Javascript serverside.
>
> > I use "classic" ASP with JScript for some projects.  Start with MSDN...
>
> Is this the only way server-side JavaScript can be implemented ? I've
> heard classic ASP is slowly phasing out, but I've also heard that

Well, it's been slowly phasing out for almost a decade. I'm sure
you'll be able to find a host for years to come.

> server-side JavaScript is slowly making an appearance, hence my
> question as to whether if there's another way of doing server-side
> JavaScript.

I'm sure you can do it with .NET, but that is definitely on the way
out as it's been a nearly unqualified disaster. In short, MS tried to
abstract something they never really understood (the Web). Sounds
familiar. :)

> Please bear with my general ignorance in this area as I've
> little experience in web programming. Thanks.

Ignorance is hardly a crime. Beat the hell out of foolhardiness. ;)

0 new messages