469,630 Members | 1,221 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,630 developers. It's quick & easy.

Question about client-side

MPA
Hi,

I am a newbee. All our applications so far were traditional client-server
database applications. We are considering now writing our main application
with Visual Studio .NET. Basically we want to be able to install each
version of our software on one or two machines without having to meddle with
typically several hundred client computers. We understand that using the new
architecture we write server side code in C# or Visual Basic, but what about
the client side (JavaScript)? Does our client side also reside on the server
and is transmitted, compiled and executed on client machines by the web
browser or do we have to write some applets and install them on client
machines?

Thanks,

Miroslaw
Aug 31 '06 #1
2 1185
Hi,

MPA wrote:
Hi,

I am a newbee. All our applications so far were traditional client-server
database applications. We are considering now writing our main application
with Visual Studio .NET. Basically we want to be able to install each
version of our software on one or two machines without having to meddle with
typically several hundred client computers. We understand that using the new
architecture we write server side code in C# or Visual Basic, but what about
the client side (JavaScript)? Does our client side also reside on the server
and is transmitted, compiled and executed on client machines by the web
browser or do we have to write some applets and install them on client
machines?

Thanks,

Miroslaw
First of all, JavaScript doesn't have applets. You're confusing with
Java. JavaScript is a totally different animal, nothing to do with Java
even though some clever marketing people at Sun tried to make the public
think otherwise. Only the syntax is similar, but not more than C# or C++.

JavaScript can be placed inline in the HTML code, or in external files.
These files reside on the web server and are delivered to the client on
request. You include an external file using this HTML code:

<script type="text/javascript" src="urlOfFile.js"></script>

Inline code is added to the HTML file using this:

<script type="text/javascript">
// code here
</script>

When the HTML page is parsed by the HTML engine, any script section will
be passed to the JavaScript engine, which will parse and interprete it.
Immediate code (i.e. code which has immediate actions, like
document.write or other calls not enclosed in functions) will be
executed sequentially. Finally, when the HTML document is fully parsed,
the onload event handler will be fired, which can be handled by JavaScript.

Typically, modern JavaScript works with events. An action by the user
fires an event which is handled by a script function.

JavaScript is very powerful, but can also be confusing for a
"traditional" programmer. For example, JavaScript variables are not
typed. A variable can contain a string one moment, and a number the
next. Also, JavaScript is very dynamic. Functions can be added to
classes during runtime, or variables to objects, etc... I strongly
recommend to specify guidelines if you use JavaScript for anything else
than your personal webpage (and even then...)

ASP.NET has a few nice features allowing each control on a page to add
scripts to the page. Check the Page.ClientScript property for example.

I could write much more about JavaScript (a truly fascinating language),
but I think I'd better stop now and let you read that. Feel free to ask
more if you need.

BTW, you should also check comp.lang.javascript for JavaScript related
questions.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Aug 31 '06 #2
Miroslaw,

Regular client side code arrives to the client browser ready to use. No
special installation is required. If you want to achieve some special
functionality, for example, scanning documents on client machine or advanced
image features like zooming and panning, you will likely want to deploy 3rd
party ActiveX components. They also arrive to client from your site, but the
user will have to take some actions to install them. Sometimes the user will
need to customize his/her browser security setting to allow your code to
run.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"MPA" <mi*********@pf.plwrote in message
news:Oi**************@TK2MSFTNGP04.phx.gbl...
Hi,

I am a newbee. All our applications so far were traditional client-server
database applications. We are considering now writing our main application
with Visual Studio .NET. Basically we want to be able to install each
version of our software on one or two machines without having to meddle
with
typically several hundred client computers. We understand that using the
new
architecture we write server side code in C# or Visual Basic, but what
about
the client side (JavaScript)? Does our client side also reside on the
server
and is transmitted, compiled and executed on client machines by the web
browser or do we have to write some applets and install them on client
machines?

Thanks,

Miroslaw


Aug 31 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Tim | last post: by
7 posts views Thread by CT | last post: by
6 posts views Thread by rodchar | last post: by
1 post views Thread by Frank Millman | last post: by
10 posts views Thread by Robert | last post: by
4 posts views Thread by Engineerik | last post: by
1 post views Thread by Peter Duniho | last post: by
3 posts views Thread by CeJay | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.