473,320 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

javascript > variable reset help!

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.
{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

Aug 29 '06 #1
1 2124

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.
{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

I was able to resolve my issue by replacing the previous code with
this:

<script language="JavaScript">
var str="<person/>"
document.write((str.link("http://www.bloglines.com/search?q=<person/>"))

</script>
the only problem now is getting it to open in a new window.
Any ideas?

Sep 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: NewbieJon | last post by:
I am attempting to send the variable "sComputerName" from my ActiveX script to "GetInfo.asp" using javascript. (Having been advised this is the way to get my ActiveX variable into my ASP script) ...
3
by: otto | last post by:
i need to read a variable in a javascript and translate it to a form in html the javascript variable is: <SCRIPT LANGUAGE='JavaScript'>RF2N('Total');</script> and i need to put that...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
6
by: Geoff | last post by:
Here's the situation. I have a static html page which we want to update to include some dynamic content. I want a counter that keeps track of the number of times anyone presses the "add" button,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.