|
Posted by Harlan Messinger on 08/29/06 15:18
CADD 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.
When do you expect them to "reset", and why? There isn't anything here
to reset. You're declaring a bunch of variables, and defining them
explicitly with hard-coded values in the declaration.
The <person/> thing is bizarre. What's that supposed to be?
>
> {CODE}
>
> <script language="JavaScript">
> var name = "<person/>";
> <![CDATA[
> function Popup(){
> var rssURL = "http://www.bloglines.com/search?q=";
> 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(rssURL+name,"",
> "copyhistory="+winCopyHistory+
> ",menubar="+winMenubar+
> ",status="+winStatus+
> ",directories="+winDirectories+
> ",location="+winLocation+
> ",resizable="+winSizeable+
> ",toolbar="+winToolbar+
> ",scrollbars="+winScrollbars+
> ",height="+winHeight+
> ",width="+winWidth);
> }
> ]]>
> </script>
> <a href="javascript:Popup()"><person/></a>
> {END CODE}
>
> Any help would be greatly appreciated.
>
> CADD
>
[Back to original message]
|