Display text

C

cc0274754

I currently use a switch case structure to display text so different stuff
appears each day of the week. It is a pain in the butt to put the text in
"document.write" statements. Is there any way to do this without breaking
the input text (which can be a page or so of text) into individual lines?

TIA,
ATS
 
R

Reply Via Newsgroup

cc0274754 said:
I currently use a switch case structure to display text so different stuff
appears each day of the week. It is a pain in the butt to put the text in
"document.write" statements. Is there any way to do this without breaking
the input text (which can be a page or so of text) into individual lines?

TIA,
ATS

Would frames or iframes not work? You could then have javascript fill
the frames pending whatever time/date criteria you want to set?

Alternativly, I believe (but don't know how) to have javascript read a
file from the server so I gather you could have it read a filename that
is created dynamically.

Lastly - does the layout of the page stay the same, but the data
changes? If this is true, then you could use innerHtml to change the
values for example, in a table cell, without a refresh, and have your
data stored in an array.

Sorry I have no concrete scripted solutions, but I hoppe the above
provides some food for your thought,

randelld
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top