Den måndag 16 maj 2016 kl. 18:19:34 UTC+2 skrev jonas.t...@gmail.com:
> Den måndag 16 maj 2016 kl. 18:00:22 UTC+2 skrev jonas.t...@gmail.com:
> > Den måndag 16 maj 2016 kl. 17:49:40 UTC+2 skrev jonas.t...@gmail.com:
> > > I just installed node js, and run the hello snippet.
> > >
> > > Could someone point me to simplest possible example where a HTML file "is used to call?" a js file. Will i need a webserver, is node.js a webserver?
> >
> > My goal is to make HTML5 apps from some old HTML pages with invoked java scripts, is node js the tool to do that?
> >
> > The code lumps start to get big unmanagable and i thought breaking up the scripts into functionX.js called from a main would help. Is it possible?
>
> Are all .js files serverside "executed on server", i want clientside "browser executed" javascript but i want to split the code/script over several files, is that possible?
I found an example of a HTML5 app i liked, but i am not sure how it works.
Are the html5-canvas-drawing-app.js run serverside or downloaded to the client/browser and run?
How can i tell?
<!DOCTYPE html>
<html>
<head>
<title>Create HTML5 Canvas JavaScript Drawing App Example</title>
</head>
<body>
<div id="canvasDiv"></div>
<!--[if IE]><script type="text/javascript" src="excanvas.js"></script><![endif]-->
<script type="text/javascript" src="html5-canvas-drawing-app.js"></script>
<script type="text/javascript">
drawingApp.init();
</script>
</body>
</html>