473,320 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Changing test with serverside includes

Hi,

I tried serverside includes to try and alter some text on a web page
I'm authoring, with the below:

<!--#config timefmt="%j" -->
<P CLASS="motd centre">
<!--#if expr="\"$DATE_GMT\" < 10" -->
We hope you have had a Merry Christmas and Happy New Year.<!--#endif
-->
<!--#if expr="\"$DATE_GMT\" < 69" -->
We open for the year on March 10th
<!--#else -->
We are now open for the year
<!--#endif -->
and look forward to welcoming you during the season. Easter and May
Day weekends are filling up, so
<!--#if expr="\"$DOCUMENT_NAME\" = \"bookenq.html\"" -->book now
<!--#else --><A HREF="/bookenq.html" TITLE="Online booking form">book
now</A><!--#endif --> to avoid disappointment.</P>
to basically change from "we're closed" to "we're open" on the
appropriate day (I'm going to be away from net access in a authoring
mode for a while)

This goes into a page like http://www.cwmcadnant.co.uk as the "message
of the day" (below the first photo), so it's all HTML 4.01 compliant
etc. But the message thus far has not lost the "Merry Christmas" part.
Is it possible to change text this way, or am I clutching at straws?

Many thanks

Stephan

Feb 11 '06 #1
1 1590
st************@mad.scientist.com wrote:
Hi,

I tried serverside includes to try and alter some text on a web page
I'm authoring, with the below:

<!--#config timefmt="%j" -->
<P CLASS="motd centre">
<!--#if expr="\"$DATE_GMT\" < 10" -->
We hope you have had a Merry Christmas and Happy New Year.<!--#endif
-->
<!--#if expr="\"$DATE_GMT\" < 69" -->
We open for the year on March 10th
<!--#else -->
We are now open for the year
<!--#endif -->
and look forward to welcoming you during the season. Easter and May
Day weekends are filling up, so
<!--#if expr="\"$DOCUMENT_NAME\" = \"bookenq.html\"" -->book now
<!--#else --><A HREF="/bookenq.html" TITLE="Online booking form">book
now</A><!--#endif --> to avoid disappointment.</P>
to basically change from "we're closed" to "we're open" on the
appropriate day (I'm going to be away from net access in a authoring
mode for a while)

This goes into a page like http://www.cwmcadnant.co.uk as the "message
of the day" (below the first photo), so it's all HTML 4.01 compliant
etc. But the message thus far has not lost the "Merry Christmas" part.
Is it possible to change text this way, or am I clutching at straws?

Many thanks

Stephan


Except for one-line includes (e.g., last date updated), I put everything
into separate script files. I use Korn-shell UNIX. The HTML and
content that I want to insert into my Web pages are then provided from
the script files by PRINT statements in the following format:
print 'Content-type: text/html'
print ''
print xxx
where the "xxx" is the desired output. The first two lines signal the
Web server to include whatever print statements follow them.

It helps that my ISP allows me to access my account on their Web server
via a secure Telnet session so that I can test my UNIX script files.

--
David E. Ross
Climate: California Mediterranean
Sunset Zone: 21 -- interior Santa Monica Mountains with some ocean
influence (USDA 10a, very close to Sunset Zone 19)
Gardening pages at <http://www.rossde.com/garden/>
Feb 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: P.Singh | last post by:
hi all i am designing a website for a charity origanisation. they cater towards the senior crowd. i would like to have choice by which the user can change the background as required (like...
31
by: Arthur Shapiro | last post by:
I'm the webmaster for a recreational organization. As part of one page of the site, I have an HTML "Calendar at a Glance" of the organization's events for the month. It's a simple table of a...
16
by: chris | last post by:
im new to javascript but slowly getting better what i want to do is have some text on the screen and when an event happens for example click a button the text would change to what i want. how...
3
by: Wade | last post by:
08242005 1416 GMT-5 Recently some of you helped me with a script to change images. Well I was asked to make a change to the script and not knowing if what the school system is even possible, Ill...
1
by: Dalan | last post by:
To avoid having potential conflicts and problems with different versions of Common Dialogs Controls, I have decided to change the ones I have used to API calls; however, this is somewhat new...
2
by: Jason | last post by:
Still working on this HTML Editor control. I have a problem when the user selects some hyperlinks. Sometimes the selection includes other tags. I figured that I could use movestart and moveend...
11
by: saurabh | last post by:
Can anybody tell me how to change the value of an html control from the c#.... eg i hv one asp.net radio button control and one html hidden variable... so on page load in case the radio button is...
5
by: Steve Swift | last post by:
Is there a universally correct way to change the weight of the font in an <INPUT TYPE=TEXTcontrol or do I have to use some trick, or even browser sniffing to achieve the same result despite the...
2
by: paul | last post by:
I have a JS function to change the width of a <divthat works great in Firefox, but not at all in IE7. In IE an error message occurs: Line: 92 Char: 5 Error: Invalid Argument Code: 0 Firefox...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.