Re: javascript > variable reset help!
- From: "CADD" <caddcreativity@xxxxxxxxx>
- Date: 30 Aug 2006 14:03:52 -0700
You're right, it does bring up a lot of questions, which I was trying
to keep all this as simple as possible from the beginning.
I wouldn't expect anyone here to know much about Artificial
Intelligence Markup Language [AIML], but it's just another variant of
XML and all is well on that end of things.
The beautiful thing about XML is it comes in many forms and integrates
with everything.
Yes, the user submits his input by pressing a button in an HTML form -
you can give it a try here:
http://www.pandorabots.com/pandora/talk?botid=875d96ffae366536
It's definitely something with the javascript example, the variable is
definitely making it through the script, but just not leaving when it's
the end of the function. It was my first attempt of putting together
javascript used for anything like that, so i can't say for sure that my
use of variables was appropriate.
If someone could ignore the rest of the stuff and help me put together
a better way of what i posted, I would be extremely grateful.
Nikita the Spider wrote:
In article <1156884878.533021.147240@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"CADD" <caddcreativity@xxxxxxxxx> wrote:
Nikita the Spider wrote:
In article <1156815568.034791.125590@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"CADD" <caddcreativity@xxxxxxxxx> wrote:
OK, I didn't fully explain what is going on.
This is being called through HTML. the input of the person is matched
with AIML "keywords",
What's AIML?
so to invoke the script, the user would type
something like "RSS baseball" and the <person/> tag is AIML to kickback
the input from the user following the keyword (baseball in this case)
Yikes, this brings up more questions than it answers, but at least it
gives us a better idea as to what's happening.
You're skipping something important -- the user types "RSS baseball" and
then what does he do in order to signify, "I'm done typing now, please
act on this input"? CLick a submit button in an HTML form? Click a
button that has a Javascript onclick event? In any case, the problem
might be inside the action of the <person/> tag which I gather is
something that's defined in a another language (not HTML). You might
need to ask on a newsgroup that's specific to that language.
--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
.
- Follow-Ups:
- Re: javascript > variable reset help!
- From: Nikita the Spider
- Re: javascript > variable reset help!
- References:
- javascript > variable reset help!
- From: CADD
- Re: javascript > variable reset help!
- From: Nikita the Spider
- Re: javascript > variable reset help!
- From: CADD
- Re: javascript > variable reset help!
- From: Nikita the Spider
- javascript > variable reset help!
- Prev by Date: Re: How to display the same links in every page?
- Next by Date: Re: javascript > variable reset help!
- Previous by thread: Re: javascript > variable reset help!
- Next by thread: Re: javascript > variable reset help!
- Index(es):