Re: javascript > variable reset help!



[top-posting corrected]
CADD wrote:
Harlan Messinger wrote:
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?

> <person/> is input from the user, so it would need to reset every time
> the user typed in a new phrase.
>
> that part works fine, but the variable retains that value and i would
> like it to terminate the input once the link is returned.

How does it work fine, when "<person/>" is just a character string that doesn't do anything? You must be using some underlying server-side platform that does something with this, but it isn't HTML and it isn't Javascript. Besides, you don't even show any form fields for a user to enter input, so how can it be "input from a user"? All you have is

<a href="javascript:Popup()"><person/></a>

which is a link that executes the function Popup()--if the user can find it, because it won't show up on the page. That, in turn, is because the only thing between the opening and closing A tags is a <person/> tag that the browser won't recognize as HTML and will therefore ignore.

> the functionality of the script works flawlessly, just the variable
> doesn't reset for new input unless you clear your browser settings.
>
> var name = "<person/>" needs to reset every time i run the code,
> without me having to clear my settings.

Every time, name will equal "<person/>". First time, every time. Because that's what you're setting it to.
.



Relevant Pages

  • Re: Cant access companyweb or other website on IIS after installi
    ... Let's re-run CEICW to reset the network configuration. ... How to configure Internet access in Windows Small Business Server 2003 ... suggest you try it again and reset all the settings. ... Install MBExplorer by installing IIS 6 Resource Kit Tools: ...
    (microsoft.public.windows.server.sbs)
  • RE: Is there a command for Reset Web Settings?
    ... So if I opened cmd and type netsh Winsock reset, ... explaining all settings that will be reset. ... Internet Explorer defaults. ... Extensions that are loaded at IE ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: reset IE to default settings
    ... I would like to incorporate a few IE related tasks in a ... > I would like to reset IE to all default values in all areas ... ... > tab) settings, reset web settings, reset privacy/cookie settings, clear ssl ... > without user interaction other than maybe a one button prompt at most. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • security too tight I cant even install XP updates as administrator
    ... I did reset the internet options defaults. ... >>Your current security settings prohibit running ActiveX ... >>>setting that will not allow administrator to install ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Google Search
    ... To reset all settings of IE: ... Remove the Plug-Ins in Internet Explorer ... Under the General tab, ...
    (microsoft.public.windowsxp.customize)