[alicebot-general] Setting predicates to value of a variable

Alan Haymes a.haymes at nicobloc.com
Fri Apr 28 02:06:19 PDT 2006


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.



More information about the alicebot-general mailing list