Using If..Then in javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris

    Using If..Then in javascript

    I have a program that populates a page from a text file. When a value
    changes I want it to display and then not be displayed again until the
    value changes. Where would I find out how to do this? below is what
    I'm trying to get:

    Milpitas
    191 Maple Street 30,000 sq.ft.
    293 Second Street 20,000 sq.ft.

    San Jose
    1 First Street 15,000 sq.ft.
    89 Second Street 20,000 sq.ft.
    33 Third Ave 20,000 sq.ft.

    Thanks,
    Chris

  • Lee

    #2
    Re: Using If..Then in javascript

    Chris said:
    >
    >I have a program that populates a page from a text file. When a value
    >changes I want it to display and then not be displayed again until the
    >value changes. Where would I find out how to do this?
    First, you need to learn to specify your requirements more precisely.

    What do you mean by "a program". Is this server-side code
    reading from a file on the server? What language is it
    written in?

    Do you mean that you only want this page generated once, so that
    only one visitor will ever see it? Or do you mean that the page
    should only be regenerated when the value changes, but might be
    displayed many times before that happens?


    --

    Comment

    • Anthony Levensalor

      #3
      Re: Using If..Then in javascript

      Chris said:
      I have a program that populates a page from a text file. When a value
      changes I want it to display and then not be displayed again until the
      value changes. Where would I find out how to do this? below is what
      I'm trying to get:
      >
      Milpitas
      191 Maple Street 30,000 sq.ft.
      293 Second Street 20,000 sq.ft.
      >
      San Jose
      1 First Street 15,000 sq.ft.
      89 Second Street 20,000 sq.ft.
      33 Third Ave 20,000 sq.ft.
      >
      Thanks,
      Chris
      >

      The question doesn't make any sense. "When a value changes, I want it to
      display and then not display until the value changes" is likely the most
      confusing sentence I've read all year. (All three days of it. ;) )

      Could you extrapolate?

      ~A!

      --
      anthony at my pet programmer dot com

      Comment

      Working...