By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,933 Members | 1,563 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,933 IT Pros & Developers. It's quick & easy.

Display text

P: n/a
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
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
cc0274754 wrote:
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
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.