Glen Urban's Notes/Domino/XPages Blog

 
alt

Glen Urban

 
Glen Urban is a XPages / Lotus Notes/Domino developer/system admin located in the North East of England. He works for IBM Advanced Business Partner FoCul.

Dojo Samples

Glen Urban  December 1 2009 03:45:44 AM
If you are are looking for Dojo samples then you don't have to go far. With 8.5.1 the Dojo 1.3 toolkit and samples are installed with the designer client and server.

Dojo is installed in the data folder: data\domino\js\dojo-1.3.2\

If you browse through the folders you will see that there is a convention to add a tests folder with samples. Within this folder the samples are zipped into a file called tests.zip. Simply extract the zip file to see the sample web pages and code.

So, for example, if you wanted to see the charting samples you would extract the zip file data\domino\js\dojo-1.3.2\dojox\charting\tests\tests.zip

Remember when you preview (not just open the file) in your browser, replace domino\js with domjs. So if you wanted to preview the 2D pie chart sample on your local client you would use the following url: http://localhost/domjs/dojo-1.3.2/dojox/charting/tests/test_pie2d.html

One thing to be aware of is that if you try to open runTests.html it won't work because it references a file that is not in this version of the Dojo toolkit. You need to open each sample separately.