> How can I change readOnly and then have TiddlyWiki refresh the dispay
> without reloading the page (over HTTP)?

See http://www.tiddlytools.com/#ToggleReadOnly

Specifically, the onclick handler, which does the following:

// set flag based on checkbox state
window.readOnly=this.checked;
// save option value (cookie or SystemSettings)
// and sync any rendered option checkboxes
config.macros.option.propagateOption('chkHttpReadOnly','checked',window.readOnly,'input');
// show/hide backstage and backstage button
window.showBackstage=!window.readOnly;
if(showBackstage && !backstage.area) backstage.init();
backstage.button.style.display=showBackstage?'block':'none';
backstage.hide();
// force theme reload (applies readonly-specific theme elements)
story.switchTheme(config.options.txtTheme);
// force redisplay of page elements (except story column contents)
refreshAll();
// force redisplay of tiddlers (story column)
story.refreshAllTiddlers(true);

enjoy,
-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to