Re: javascript > variable reset help!
- From: "CADD" <caddcreativity@xxxxxxxxx>
- Date: 31 Aug 2006 08:51:27 -0700
Nikita,
Thanks again for the reply.
It makes sense what you're saying, but I do not believe it to be a
server-side error because the variable is actually assigned. When you
type baseball, it generates a link that says baseball and when you
click the link, it takes you to an RSS baseball search on bloglines. if
you go back and now type "RSS football", the link says football now,
but when you click it, it still takes you to the RSS baseball search.
any other thoughts?
Nikita the Spider wrote:
In article <1156971832.130118.220850@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"CADD" <caddcreativity@xxxxxxxxx> 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
.
- 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
- Re: javascript > variable reset help!
- From: CADD
- Re: javascript > variable reset help!
- From: Nikita the Spider
- javascript > variable reset help!
- Prev by Date: Re: Frameset Borders
- Next by Date: Table Row Background onClick?
- Previous by thread: Re: javascript > variable reset help!
- Next by thread: Re: javascript > variable reset help!
- Index(es):