HighDots Forums  

Using If..Then in javascript

Javascript JavaScript language (comp.lang.javascript)


Discuss Using If..Then in javascript in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris
 
Posts: n/a

Default Using If..Then in javascript - 01-03-2008 , 04:57 PM






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


Reply With Quote
  #2  
Old   
Lee
 
Posts: n/a

Default Re: Using If..Then in javascript - 01-03-2008 , 05:16 PM






Chris said:
Quote:
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?


--



Reply With Quote
  #3  
Old   
Anthony Levensalor
 
Posts: n/a

Default Re: Using If..Then in javascript - 01-03-2008 , 05:33 PM



Chris said:

Quote:
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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.