Next, I tried to run this on my 8.5 Beta 1 Domino server at home.
So my HTML Head Content was changed to
And, of course, the files shipped with Beta 1 are dojo 1.1.0. Fortunately the Dojo Quick Start Guide also links to the earlier version (not that I could spot any differences!)
Everything worked OK until I tried to run the example which retrieves text as json. I kept getting a 404 - file not found error. Rather than wasting time trying to find the typo in the file path I created a simple test agent which output the example json text, because agents and views (using ?ReadViewEntries) are the two most common ways of generating json in Domino.
The only thing I had to do was find out the appropriate mime type for the output. I initially used text/html and everything worked. Firebug helpfully displayed the following message:
Consider using mimetype:text/json-comment-filtered to avoid
potential security issues with JSON endpoints
(use djConfig.usePlainJson=true to turn off this message)
So I modified the HTML head content again, removing the debug parameter and replacing it with the suggested json parameter:
and set the content type. My agent is simply:
Print "Content-type: text/html"
alert("internal function run");
Next - on to digits