[pandorabots-general] set a link to a webpage
GT40
gt40 at tiscali.fr
Wed Feb 14 05:12:31 PST 2007
Hi Maria!
I don't understand why you got no reply. I'm a newbie in JavaScript but
Google is our friend and give the following link (I'm sure it's a friend
site!):
http://www.alicebot.org/documentation/aiml-primer.html
Take a look at the last question: "Can I include JavaScript in the robot
reply?".
I adapted the script on Pandorabots and all this works perfectly. A you can
see, I was obliged to add the <think> tag somethere, because of using a
talking bot. But I'm sure an easier solution could exist (I'm not a
programmer).
GT40
And now, the copied (what a shame!) category, after minor modifications:
---------------------------------------------------------------------------------
<category>
<pattern>WHAT IS YOUR BOTMASTER'S SITE</pattern>
<template>
Take a look there.
<think>
<script language="JavaScript">
function Popup(){
var winURL = "http://gt40.chez-alice.fr";
var winWidth=800;
var winHeight=600;
var winScrollbars="yes";
var winToolbar="yes";
var winSizeable="yes";
var winLocation="yes";
var winDirectories="yes";
var winStatus="yes";
var winMenubar="yes";
var winCopyHistory="yes";
newWin=window.open(winURL,"",
"copyhistory="+winCopyHistory+
",menubar="+winMenubar+
",status="+winStatus+
",directories="+winDirectories+
",location="+winLocation+
",resizable="+winSizeable+
",toolbar="+winToolbar+
",scrollbars="+winScrollbars+
",height="+winHeight+
",width="+winWidth);
}
</script>
</think>
javascript:Popup() It's my botmaster's site!
</template>
</category>
---------------------------------------------------------------------------------
Maria Nedo wrote:
>
> Hello!
>
> I'm trying to create a German speaking bot. Now I have one simple (I hope
> so) problem.
> My bot is like a FAQ for people interested in studying informatics at my
> college. So I have to give some links to special websites.
> NOW my problem ;)
> If I try to set a link with http://www.website.de website I get an error
> like: Not Found
> The request for http://demo.vhost.pandorabots.com/pandora/www.website.de
> was not found on this server.
>
> How can I set the reference right,so that I get the website and not the
> Pandora-Server?
>
> Thanks
> Maria
>
--
View this message in context: http://www.nabble.com/set-a-link-to-a-webpage-tf3210509.html#a8964609
Sent from the Pandorabots-general mailing list archive at Nabble.com.
More information about the pandorabots-general
mailing list