[General] How to Execute Code at World Startup on Lively Wiki?
Robert Krahn
robert.krahn at student.hpi.uni-potsdam.de
Mon Feb 23 04:01:26 CET 2009
Hi Philip,
paste and select your scripts in a Wiki World. Then open a context
menu, go to 'Text functions...' and choose 'add as preamble to current
ChangeSet' or 'add as postscript to current ChangeSet'.
When you have new Morph definitions and instances of those Morphs
should be saved with the page, put the definitions in the preamble
(because the preamble is evaluated before the World is serialized). If
you have scripts which are accessing the WorldMorph or its submorphs
than put those into the postscript.
You can than view and change the ChangeSet by opening the
SystemBrowser and choose 'ChangeSet for World' in the left pane (at
the bottom).
Robert
On Feb 22, 2009, at 2:53 PM, Philip Weaver wrote:
>
> I want some code to execute every time my world opens on the wiki.
> Is this possible? I have done this locally already by altering my
> local copy of Main.js.
>
> I'm basically trying to incorporate my own examples and demo into my
> existing wiki page without having to use alt-d to kick them off. Do
> I instead just need to host my own page?
>
> Thanks,
> Philip
> _______________________________________________
> General mailing list
> General at livelykernel.sunlabs.com
> http://livelykernel.sunlabs.com/mailman/listinfo/general
More information about the lively-kernel
mailing list