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

calendar

P: n/a
I am using frames to on a page which has a calendar.
there is a header which changes the month in the frame, and the calendar
itself.
What I want to do is change the calendar every month to reflect the current
month.
What I am doing now is going in monthly and changing the target....jan.html
to feb.html, next month feb.html to march.html..etc
My hope is that I will not have to manually update.
Any ideas???
thanks.

current code:

<HTML>
<HEAD>
</HEAD>

<frameset cols="60" framespacing="0" border="0" frameborder="0">
<frameset rows="92,84%" framespacing="0" border="0" frameborder="0">
<frame name="top" scrolling="no" noresize target="tres"
src="tresheader.html">
<frame name="tres" src="jan.html">

<noframes>
<body>
<p> this page uses frames, but your browser does not support them. </p>
</body>
</noframes>
</frameset>
</html>
Feb 6 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
VK

Prophet wrote:
I am using frames to on a page which has a calendar.
there is a header which changes the month in the frame, and the calendar
itself.
What I want to do is change the calendar every month to reflect the current
month.
What I am doing now is going in monthly and changing the target....jan.html to feb.html, next month feb.html to march.html..etc
My hope is that I will not have to manually update.
Any ideas???
thanks.

current code:

<HTML>
<HEAD>
</HEAD>

<frameset cols="60" framespacing="0" border="0" frameborder="0">
<frameset rows="92,84%" framespacing="0" border="0" frameborder="0">
<frame name="top" scrolling="no" noresize target="tres"
src="tresheader.html">
<frame name="tres" src="jan.html">

<noframes>
<body>
<p> this page uses frames, but your browser does not support them. </p>
</body>
</noframes>
</frameset>
</html>


Frames are bad.
Scripted frames are even worse.
Client-side calendar can be wrong

Having said that:

....
<frame name="top" scrolling="no" noresize target="tres"
src="tresheader.html">
<script type="text/javascript">
var month = new Array('jan', 'feb', 'march', 'yours to continue');
var i = (new Date()).getMonth();
document.write('<frame name="tres" src="');
document.write(month[i]+'.html">');
</script>
<noscript>
<frame name="tres" src="noscriptOptions.html">
</noscript>
....

P.S. I did not check you frameset structure which looks rather strange.
If you have problems with it please ask at
<comp.infosystems.www.authoring.html>

Feb 6 '06 #2

P: n/a

"VK" <sc**********@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

Prophet wrote:
I am using frames to on a page which has a calendar.
there is a header which changes the month in the frame, and the calendar
itself.
What I want to do is change the calendar every month to reflect the
current
month.
What I am doing now is going in monthly and changing the

target....jan.html
to feb.html, next month feb.html to march.html..etc
My hope is that I will not have to manually update.
Any ideas???
thanks.

current code:

<HTML>
<HEAD>
</HEAD>

<frameset cols="60" framespacing="0" border="0" frameborder="0">
<frameset rows="92,84%" framespacing="0" border="0" frameborder="0">
<frame name="top" scrolling="no" noresize target="tres"
src="tresheader.html">
<frame name="tres" src="jan.html">

<noframes>
<body>
<p> this page uses frames, but your browser does not support them. </p>
</body>
</noframes>
</frameset>
</html>


Frames are bad.
Scripted frames are even worse.
Client-side calendar can be wrong

Having said that:

...
<frame name="top" scrolling="no" noresize target="tres"
src="tresheader.html">
<script type="text/javascript">
var month = new Array('jan', 'feb', 'march', 'yours to continue');
var i = (new Date()).getMonth();
document.write('<frame name="tres" src="');
document.write(month[i]+'.html">');
</script>
<noscript>
<frame name="tres" src="noscriptOptions.html">
</noscript>
...

P.S. I did not check you frameset structure which looks rather strange.
If you have problems with it please ask at
<comp.infosystems.www.authoring.html>


Thank you - will give it a try.
Feb 6 '06 #3

P: n/a

"VK" <sc**********@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

Prophet wrote:
I am using frames to on a page which has a calendar.
there is a header which changes the month in the frame, and the calendar
itself.
What I want to do is change the calendar every month to reflect the
current
month.
What I am doing now is going in monthly and changing the

target....jan.html
to feb.html, next month feb.html to march.html..etc
My hope is that I will not have to manually update.
Any ideas???
thanks.

current code:

<HTML>
<HEAD>
</HEAD>

<frameset cols="60" framespacing="0" border="0" frameborder="0">
<frameset rows="92,84%" framespacing="0" border="0" frameborder="0">
<frame name="top" scrolling="no" noresize target="tres"
src="tresheader.html">
<frame name="tres" src="jan.html">

<noframes>
<body>
<p> this page uses frames, but your browser does not support them. </p>
</body>
</noframes>
</frameset>
</html>


Frames are bad.
Scripted frames are even worse.
Client-side calendar can be wrong

Having said that:

...
<frame name="top" scrolling="no" noresize target="tres"
src="tresheader.html">
<script type="text/javascript">
var month = new Array('jan', 'feb', 'march', 'yours to continue');
var i = (new Date()).getMonth();
document.write('<frame name="tres" src="');
document.write(month[i]+'.html">');
</script>
<noscript>
<frame name="tres" src="noscriptOptions.html">
</noscript>
...

P.S. I did not check you frameset structure which looks rather strange.
If you have problems with it please ask at
<comp.infosystems.www.authoring.html>


I tried the code, but the "feb.html" does not appear.
Feb 6 '06 #4

P: n/a
JRS: In article <R1DFf.180211$6K2.163853@edtnps90>, dated Mon, 6 Feb
2006 07:38:25 remote, seen in news:comp.lang.javascript, Prophet
<M_*****@hotmail.com> posted :
What I want to do is change the calendar every month to reflect the current
month.
What I am doing now is going in monthly and changing the target....jan.html
to feb.html, next month feb.html to march.html..etc
My hope is that I will not have to manually update.


Read the newsgroup FAQ; see below.

--
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.
Feb 6 '06 #5

P: n/a
VK

Prophet wrote:
I tried the code, but the "feb.html" does not appear.


As I said you frameset structure looks rather strange.
Say you have two framesets but only *one* closing tag.
<noframes> section is placed inside of frameset.
Very suspitious looking frame sizes are declared.
Bring the frame structure in order first, ask at
<comp.infosystems.www.authoring.html>

Feb 7 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.