473,396 Members | 2,002 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,396 software developers and data experts.

how do make my pages load automaitically



on my home page, there is a frame that serves as a timetable for each
day, i do i make this frame change automatically, assuming i have html
files for each day?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #1
4 1368
kunle Balogun wrote:

on my home page, there is a frame that serves as a timetable for each
day, i do i make this frame change automatically, assuming i have html
files for each day?
You change it on the server with a dynamic variable as the source of the
frame. Barring that, you use Scripting to change the SRC attribute of
the frame tag based on the current date, and you name your pages
accordingly. Probably the simplest method would be a Julian type date
based on the current day of the year and the current year. Search the
comp.lang.javascript archives on how to do that.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


While you are at it, try getting a decent newsreader and a news feed
instead of that devCrap.com site.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #2
JRS: In article <EO********************@comcast.com>, dated Sat, 12 Mar
2005 18:12:58, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
Probably the simplest method would be a Julian type date
based on the current day of the year and the current year. Search the
comp.lang.javascript archives on how to do that.


That use of "Julian" is somewhat specific to the US computer industry;
the international standard term for that is "Ordinal Date". Julian Date
is rightly a daycount from Gregorian -4713-11-24 12:00:00 GMT.

If one has files for each day, the simplest is IMHO to name them as
YYYYMMDD (MMDD if the same files are used on the same date each year).

One should consider whether the change is to be at midnight user time,
midnight GMT (both easy) or at some other time.

with (new Date())
FrameNamePart = (getFullYear()*100 + getMonth() + 1)*100 + getDate()

will give user's YYYYMMDD.

Ordinal date is not quite so easy; I don't recall it being discussed
here recently, but reading the FAQ should help.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #3
Dr John Stockton wrote:
JRS: In article <EO********************@comcast.com>, dated Sat, 12 Mar
2005 18:12:58, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :

Probably the simplest method would be a Julian type date
based on the current day of the year and the current year. Search the
comp.lang.javascript archives on how to do that.

That use of "Julian" is somewhat specific to the US computer industry;
the international standard term for that is "Ordinal Date". Julian Date
is rightly a daycount from Gregorian -4713-11-24 12:00:00 GMT.


Depends on which definition of "Julian" date you use, and how you
percieve the phrase "Julian *type*". Not a "Julian Date", but a "Julian
Type Date".
If one has files for each day, the simplest is IMHO to name them as
YYYYMMDD (MMDD if the same files are used on the same date each year).
If so inclined. But as long as the proper file can be determined for the
date, it doesn't matter.
One should consider whether the change is to be at midnight user time,
midnight GMT (both easy) or at some other time.
It doesn't matter, as long as it happens in a reasonable manner to the
OP. Perhaps the most *sensible* time would be midnight user time.
Ordinal date is not quite so easy; I don't recall it being discussed
here recently, but reading the FAQ should help.


"Ordinal Date", as you call it, wouldn't be that hard to determine, the
most difficult being Feb's days which is quite trivial.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #4
JRS: In article <8O********************@comcast.com>, dated Mon, 14 Mar
2005 21:18:22, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
Dr John Stockton wrote:
JRS: In article <EO********************@comcast.com>, dated Sat, 12 Mar
2005 18:12:58, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :

Probably the simplest method would be a Julian type date
based on the current day of the year and the current year. Search the
comp.lang.javascript archives on how to do that.

That use of "Julian" is somewhat specific to the US computer industry;
the international standard term for that is "Ordinal Date". Julian Date
is rightly a daycount from Gregorian -4713-11-24 12:00:00 GMT.


Depends on which definition of "Julian" date you use, and how you
percieve the phrase "Julian *type*". Not a "Julian Date", but a "Julian
Type Date".


It is safer not to introduce "Julian" in conjunction with YYYY-DDD or
similar; why perpetrate an IBMism that conflicts with long established
usage throughout the world? I know of no definition of "Julian type
date" as such; but one would expect it to apply to one of JD, MJD, CJD,
CMJD, and similar - a day-count from a single base date fixed in
"history".
If one has files for each day, the simplest is IMHO to name them as
YYYYMMDD (MMDD if the same files are used on the same date each year).


If so inclined. But as long as the proper file can be determined for the
date, it doesn't matter.


Except that the simplest is less likely to have errors in
implementation; the obvious way to determine ordinal date is be finding
the days difference between now and Jan 1st --- and we have recently
been provided by two posters of a demonstration of how not to do that.
One should consider whether the change is to be at midnight user time,
midnight GMT (both easy) or at some other time.


It doesn't matter, as long as it happens in a reasonable manner to the
OP. Perhaps the most *sensible* time would be midnight user time.


Indeed; the OP should, however, consider the matter. Some other
midnight *might* be more fitting.
Ordinal date is not quite so easy; I don't recall it being discussed
here recently, but reading the FAQ should help.

"Ordinal Date", as you call it, wouldn't be that hard to determine, the
most difficult being Feb's days which is quite trivial.


Perhaps you have forgotten what the FAQ says on the subject?

Ordinal Date, which is the term used in ISO 8601, can be calculated from
Y M D by taking the difference of Date.UTC of Y M D & Y 0 0 and
dividing; it can be calculated from a Date Object by noting valueOf(),
setting Month and Date to 0, subtracting, dividing, *and rounding*. No
need to bother explicitly with the length of each month at all. Or one
can avoid Date completely by (after Meeus; cf. Zeller) :
K = 2 - (Y%4==0) // 2 - Leap, 1901-2099
N = Math.floor(275*M/9) - K*(M>2) + D - 30

Nevertheless, a Y M D -based URL is easier, especially as the author
will probably want to know at sight what date each page is for. Though
Y W D might gave advantages, if one week tends to resemble another.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #5

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

Similar topics

4
by: Jerry | last post by:
I recently upgraded my PC from Windows XP Home to XP Professional, so that I can use XP Pro's build in IIS functionality to build ASP pages off of my home PC. I have installed IIS 5.1, configured...
7
by: PaulThomas | last post by:
I am fighting with XP-Pro and VS.Net trying to allow some of the pages in my application to be accessable by 'all' I am using <authentication mode="Forms" /> and if I Login - everything works...
5
by: Olaf Gschweng | last post by:
We're new into DB2 and have some problem with DB2 8.1 (?) on a Linux system. We load some big tables of a DB2 database from files every day. We do a "DELETE FROM table" for each table and then we...
1
by: Carl Gilbert | last post by:
Hi I am trying to get a site working with some 1&1 web space. I have the MS Business Pro account which has ASP.NET Support and SQL Server. I am trying to get an online gallery to work but I...
6
by: Terry Olsen | last post by:
Is there any way to make my aspx pages appear faster on the first hit? When browse to a page I have on my local server, I watch the server's hard drive light chug away for a good 20-30 seconds...
17
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
4
by: Mikaël PLOUHINEC | last post by:
Hello, I have created a master page with a css. How can I use css in the children pages? The css must be declared in the <head</headsection. Does I have to import all my css in my master? Is...
5
by: Seer | last post by:
Hi. This is driving me crazy so I hope someone will help! I am using chickenfoot and javascript to try and achieve something that should be really simple. Basically a script that navigates...
3
by: Jason | last post by:
Will just getting VB.net allow me to make asp server pages, or web applications? Or do I need the whole suite?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.