regards,
Lars On 20.02.2008, at 14:33, Lars Trieloff wrote:
Hi,I have been developing a Dojo Store binding for µjax that allows you to bind your Sling repository quite quickly to a Dojo widget such as a tree browser or a grid. Basically, all you need to do is adding those lines to an HTML file:<script type="text/javascript"> dojo.require("dijit.Tree"); dojo.require("dojox.data.UJaxStore"); </script><div dojoType="dojox.data.UJaxStore" url="/test" jsId="ifrUjaxStore"></div> <div dojoType="dijit.Tree" id="tree2" label="Root" store="ifrUjaxStore"></div>What you get looks like this: http://www.youtube.com/watch?v=wwlZlWvrkGo which is also quite nice (you have deferred loading, it stores the expansion state of the tree, etc) and demonstrates the capabilities of Sling and Dojo quite well.Of couse, I am planning to integrate this with Peter's Bunkai (he already has the code), but here we expect the first problems. I wanted to browse the dojo source tree itself, which contains lots of js files. Everything is fine if you access the source file directly, but I was unable to get the JSON representation (curl -u admin:admin http://localhost:8888/dojo/dojo/AdapterRegistry.js.1.json) because Sling tries to execute the JS script then and gives me following error message:org.mozilla.javascript.EcmaError: ReferenceError: "dojo" is not defined. (/dojo/dojo/AdapterRegistry.js#1) ... and so on.So my question is how do I define subtrees that are not executable, even if they contain a script. I think microsling originally had a convention that only scripts in /scripts were actually executable, but the current code deviates from this convention.regards, Lars -- Lars Trieloff [EMAIL PROTECTED] http://weblogs.goshaky.com/weblogs/lars
-- Lars Trieloff [EMAIL PROTECTED] http://weblogs.goshaky.com/weblogs/lars
smime.p7s
Description: S/MIME cryptographic signature
