[alicebot-general] Setting predicates to value of a variable
Noel Bush
noel at aitools.org
Fri Apr 28 05:45:24 PDT 2006
You should be able to do this:
<set name="name"><javascript>visitor</javascript></set>
Noel
Alan Haymes wrote:
> Is there any way that I can set a predicate to the value of variable within a
> javascript statement? I am experimenting with cookies so that I can welcome
> back visitors by name in response to them saying "hi".
>
> I am able to set the cookie (set_cookie ("visitor")) when they tell me their
> name by assigning their name to a variable within javascript (e.g. var
> visitor = "<star/>" where say * = Fred) but although I can retrieve their
> name back into another variable (e.g. var visitor = get_cookie ( "visitor"
> )) I can not see how to get the value of "visitor" (Fred) back into
> predicate "name" - any syntax I've tried e.g. <set
> name="name"><visitor/></set> fails.
>
> Any ideas anyone?
> --
> View this message in context: http://www.nabble.com/Setting-predicates-to-value-of-a-variable-t1523359.html#a4136896
> Sent from the Alicebot General forum at Nabble.com.
>
> _______________________________________________
> This is the alicebot-general mailing list
> Reply to alicebot-general at list.alicebot.org
> Unsubscribe and change preferences at http://list.alicebot.org/mailman/listinfo/alicebot-general
> Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
> Learn to read at http://www.literacy.org/
More information about the alicebot-general
mailing list