[Cppcms-users] using javascript source files/libraries...
Brought to you by:
artyom-beilis
|
From: Vazgen K. <va...@ya...> - 2010-10-22 05:50:57
|
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.
|