473,326 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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 1404
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tim | last post by:
Hello everyone. I visit this board pretty regularly but have never posted. My question is an application architecture question... so hopefully it's okay to post in the dotnet general forum. I...
7
by: CT | last post by:
Hi, This might seem like a basic question but I have some doubts, please humour me. I have a client-server application using java where each client on each machine needs to directly...
6
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is...
1
by: Brian Henry | last post by:
Hello, I was tring to learn socket's (being i never used them before) and have a simple question. I want to create a listner that will get any data recieved and print it out. I've been able to...
29
by: MP | last post by:
Greets, context: vb6/ado/.mdb/jet 4.0 (no access)/sql beginning learner, first database, planning stages (I think the underlying question here is whether to normalize or not to normalize this...
1
by: Frank Millman | last post by:
Hi all I am developing a multi-user business/accounting application. It is coming along nicely :-), though rather slowly :-( I have hit an issue which will require a lot of changes to the code...
10
by: Robert | last post by:
I am an attorney in a non-profit organization and a self-taught programmer. I'm trying to create a client db that will allow me to search for potential conflicts of interest based either on Social...
4
by: Engineerik | last post by:
I am trying to create a socket server which will listen for connections from multiple clients and call subroutines in a Fortran DLL and pass the results back to the client. The asynchronous socket...
1
by: Peter Duniho | last post by:
I have run into a design question that I don't have strong feelings about one way or the other, so I'm curious what the OOP gurus think about it. :) A recent post led me to suggest using a state...
3
by: CeJay | last post by:
Hi All Ok this is a bit of a doozy for me. Work related question, I have been tasked with sorting out this issue at work, but don't really have much background in this field, but theres no one...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.