|
Posted by CADD on 08/29/06 20:54
wow - thank you all for the responses.
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", 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)
so, the [var name = "baseball"; ] takes the input from the <person/>
and uses that as the value and adds it to the end of the URL
[newWin=window.open(rssURL+name,"", ]
this: <a href="javascript:Popup()"><person/></a>
returnes a hyperlinked "baseball" and takes the user to the URL
[http://www.bloglines.com/search?q=baseball]
so, it all works perfectly now, except you have to clear your brower's
cookies to get the next search result, otherwise it just keeps
outputting the link with the previously assigned variables.
i would like the variables to terminate after the link is returned, but
they aren't.
thanks again for all the feedback.
Nikita the Spider wrote:
> In article <1156815568.034791.125590@i42g2000cwa.googlegroups.com>,
> "CADD" <caddcreativity@gmail.com> wrote:
>
> > I've used http://www.bloglines.com to add RSS feeds to my sites there
> > and setup javascript in my website to search bloglines for the input
> > term.
> >
> > The code below works perfect, but I have 1 minor issue, hopefully
> > someone more family with javascript can help me out with.
> >
> > 1) the variables do not reset, so any future searches return the same
> > previous returned link, unless i clear settings/cookies.
>
> <snip>
>
> > Any help would be greatly appreciated.
>
> First, I can't make out what you're trying to accomplish based on that
> snippet. Where is it called from? What the heck is a <person> tag? etc.
> Give us a URL where we can examine the code ourselves.
>
> Second, try asking in comp.lang.javascript.
>
> --
> Philip
> http://NikitaTheSpider.com/
> Whole-site HTML validation, link checking and more
[Back to original message]
|