[daisy] [JIRA] Commented: (DSY-560) Introduce an easy way to
enable/disable dojo debug.
Bruno Dumon (JIRA)
issues at cocoondev.org
Mon Dec 10 08:10:19 CST 2007
[ http://issues.cocoondev.org//browse/DSY-560?page=comments#action_13494 ]
Bruno Dumon commented on DSY-560:
---------------------------------
For Firefox, see this:
http://shaneosullivan.wordpress.com/2007/01/12/greasemonkey-script-to-turn-on-firebug-debugging-for-dojo/
though it's certainly interesting to have this functionality for IE too.
> Introduce an easy way to enable/disable dojo debug.
> ---------------------------------------------------
>
> Key: DSY-560
> URL: http://issues.cocoondev.org//browse/DSY-560
> Project: Daisy
> Type: New Feature
> Reporter: Bruno Dumon
> Priority: Minor
> Fix For: 2.2
>
> To enable dojo debug mode, one needs to execute this before dojo is loaded:
> var djConfig = {};
> djConfig.isDebug = true;
> Daisy's layout.xsl can insert this code, based on the value of the dojo-debug XSLT parameter (defined from the sitemap.xmap).
> This is rather clumsy to work with, since:
> - it requires modifying the sitemap, and not forgetting to change it back afterwards
> - layout.xsl is used in multiple pipelines, hence needs this modification in multiple places
> - this enables dojo debug mode for all users, which is not good if it is not a local Daisy install.
> As a solution, we could have the dojo-debug preference stored in the session, and have some URL to enable/disable the debugging. This allows to easily enable/disable dojo debug on any Daisy installation. A disadvantage is that the setting is lost once the session is lost. Another possibility would be to store this preference in a cookie (could be done without any server-side support, I think).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the daisy
mailing list