Hi Mario! I do have the InlineJavascriptPlugin, which is why the script worked in FF. I also removed the systemConfig tag and it worked. I tried your way, without the <script> tags and with systemConfig tag, but then I got the following errors: FF3.6.9: Error: TypeError: place is null IE8: Error: Object required Chrome 6: Error: TypeError: Cannot read property 'firstChild' of null Opera 10.63: Error: TypeError: Cannot convert 'place' to object I put the script in zzDash tiddler, so it was read last. Any ideas? w
On Oct 16, 10:28 am, PMario <[email protected]> wrote: > Hi, > <script> tag is only supported, if you use InlineJavasscriptPlugin > which executes the script in a normal tiddler. > "systemConfig" tag marks the content of a tiddler as a "script" to be > executed at startup > > a tiddler that contains: > some text > <script> > the code > </script> > > is fine if InlineJavascriptPlug executes "the code." > > but with systemConfig tag you will get an error, because everything is > executed and "some text" is no valid JS command. Also <script> may > cause some trouble. > > A tiddler tagged systemConfig should look like this > > /*** > wikified text and documentation goes here > > !Code > ***/ > //{{{ > story.closeAllTiddlers(); > if(store.tiddlerExists(config.options.txtUserName+'\'s Dashboard')) > {story.displayTiddler(null,config.options.txtUserName+'\'s > Dashboard');} > else > {story.displayTiddler(null,'404');} > window.showBackstage = window.simpleRoles.contains('Admin'); > //}}} > > which will be nicely rendered and can be executed. > there is no <script> tag anymore > > the above is not tested > > have fun! > mario -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

