Yep, that works for me!
Thanks a lot!
----- Original Message ----
From: Artyom <art...@ya...>
To: cpp...@li...
Sent: Fri, October 22, 2010 12:48:32 AM
Subject: Re: [Cppcms-users] using javascript source files/libraries...
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
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Cppcms-users mailing list
Cpp...@li...
https://lists.sourceforge.net/lists/listinfo/cppcms-users
|