Re: [Cppcms-users] using javascript source files/libraries...
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-10-22 07:48:39
|
Hello, Read this: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config#file\_server Generally you need to specify file_server.enable and probably file_server.document_root if "." is not ok. > > Hello, > I'm not an expert in web development, so this may be something trivial. I'm > actually trying to use a javascript file called json2.js and in my hello_world > > example I added a line: > <script src='json2.js'></script> > Then when trying to run the application as a standalone server (i.e. by >running > > ./hello_world -c config.js) I'm getting the following error in my browser: > "NetworkError: 404 Not Found - http://localhost:8080/json2.js" > > What do I do wrong? It looks like it does not see the current directory as >root, > > no? What's the way of specifying root directory if so? Note that when I save >the > > same html in a file and open it - it works just fine. > > Thanks, > Vazgen. Artyom |