|
Posted by Nikita the Spider on 08/31/06 02:29
In article <1156971832.130118.220850@i42g2000cwa.googlegroups.com>,
"CADD" <caddcreativity@gmail.com> wrote:
>
> 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.
Having looked at the example, I'm not sure what the problem is. I go to
the URL that you gave above, type in "rss baseball", hit enter, and I
get another screen that looks basically the same but with this added:
Human: rss baseball
botCAD: baseball.
On that page, it looks like the very top of the <script> block (var name
= " baseball";) was generated by a server-side process based on my
input. If the server-side process isn't writing the correct value into
that variable, then this isn't a Javascript problem and it isn't an HTML
problem, it is a problem with your server side code. Make sense?
--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
[Back to original message]
|