I am trying to learn my way into a robust virtual agent interface to AIML 2.0.
It appeared javascript was a good place to start.
So I wrote an html page that loads the programAB.jar file,
then attempts to call multisentenceRespond passing “Hello” and displaying the response.
I am sure it can’t be this simple, but I cannot find an example that demonstrates
what I am missing.
Help!
Here is my starting point
<html>
<body>
<applet
id=“AI”
archive=“file:\\\\\\D:\\programAB\\lib\\ab.jar”
code=“org.alicebot.ab.Chat”>
</applet>
<script type="text/javascript">
var Request = “Hello”;
var response = AI.multisentenceRespond(Request);
alert (response);
</script>
</body>
</html>
Thanks,
Barry
[edit] Once again, I added the [ code ] tags to make the code more readable. Please use them in the future - Dave [/edit]