I just spent a couple of hours in this, and finally made it work.
What can be added to the tutorial is the following:
1) Install all the dojo libraries in the same directory as de them:
drwxr-xr-x 7 chris www-data 4096 2012-10-06 02:50 dgrid
-rw-r--r-- 1 chris www-data 63 2012-10-06 01:37 dgrid.js
drwxr-xr-x 14 chris www-data 4096 2012-10-06 01:37 dijit
-rw-r--r-- 1 chris www-data 53 2012-10-06 01:37 dijit.js
drwxr-xr-x 20 chris www-data 4096 2012-10-06 11:36 dojo
-rw-r--r-- 1 chris www-data 52 2012-10-06 01:37 dojo.js
drwxr-xr-x 69 chris www-data 4096 2012-10-06 01:28 dojox
-rw-rw-r-- 1 chris www-data 3526 2012-10-06 12:08 index.html
-rw-rw-r-- 1 chris www-data 17112 2012-10-06 12:10 index.js
-rw-r--r-- 1 chris www-data 237788 2012-10-06 01:22 lightstreamer_namespace.js
drwxrwxr-x 2 chris chris 4096 2012-10-06 12:09 lightstreamer-store
-rw-r--r-- 1 chris www-data 193 2012-10-06 01:37 package.json
drwxr-xr-x 3 chris www-data 4096 2012-10-06 02:48 put-selector
-rw-r--r-- 1 chris www-data 61 2012-10-06 01:37 put-selector.js
drwxrwxr-x 2 chris www-data 4096 2012-10-06 01:50 resources
drwxr-xr-x 5 chris www-data 4096 2012-10-06 01:37 xstyle
-rw-r--r-- 1 chris www-data 55 2012-10-06 01:37 xstyle.js
2) create a directory called lightstreamer-store, and place there the Lightstreamerstore.js file
3) modify index.js to point to your server:
line 258
var lsClient = new LightstreamerClient("http://yourserver.com:8080","DEMO");
where 8080 is the port where your lightstreamerserver is working the other demos.
my apologies, I wrote js folder everywhere while I meant src folder, so yes, your are correct.
I'm going to correct the readme on github.
As per point 2, it should not be necessary as soon as the package repository is fixed, I wrote to the dojo guys as I'm not able to fix it myself through the submit. In the meanwhile I add a zip here containing the files as them are when downloaded by cpm.
Bookmarks