HighDots Forums  

Re: Display text

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Display text in the Javascript forum.



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

Default Re: Display text - 04-20-2004 , 05:46 PM






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


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.