|
-
Jan 6th, 2009, 01:42 PM
#1
Thread Starter
New Member
Java calendar?
Is there any way to create a java calendar that auto switches from month to month and shows the current day?
-
Jan 6th, 2009, 01:49 PM
#2
Re: Java calendar?
Java is a programming language, so the calendar wouldn't be a "Java Calendar" per say.
Is it possible to accomplish what you need with Java? Yes. You will need to attempt it yourself, though, and we will be here to help you on your way.
If you Google "Calendar written in Java," I'm sure you'll receive plenty of hits to help you on your way, if not give you the code to accomplish what you need.
-
Jan 6th, 2009, 01:58 PM
#3
Thread Starter
New Member
Re: Java calendar?
Well basically, right now I have an html calendar on one of my sites, the way it is right now I have to switch out the calendar manually every month, it does not show the current day, but it does allow me to post a link as the date for the members of that site to use.
If there is any way I could use Java or JavaScript to execute the auto switch on the first of every month plus show the current date on the calendar, and one other thing I forgot, instead of having to click the actual date just being able to click the box of the day would be great as well, then it would be a major help and time saver.
-
Jan 6th, 2009, 02:16 PM
#4
Re: Java calendar?
How big is the calendar? Here is an example of one that highlights the current day and changes the month appropriately.
http://www.dynarch.com/projects/calendar/
If you Google "JavaScript calendar," I can guarantee someone has written a script that you can have that will accomplish exactly (or close to) what you need.
No need to re-invent the wheel.
-
Jan 6th, 2009, 03:04 PM
#5
-
Jan 6th, 2009, 03:31 PM
#6
Thread Starter
New Member
Re: Java calendar?
Either java or javascript whatever will work, I've only been working with css html and only very recently very simple javascript, so I don't know which one will do what I need.
-
Jan 6th, 2009, 03:32 PM
#7
Thread Starter
New Member
Re: Java calendar?
Oh, the calendar is a 400 width 400 height calendar in html coding.
-
Jan 6th, 2009, 03:48 PM
#8
-
Jan 6th, 2009, 03:49 PM
#9
Thread Starter
New Member
-
Jan 6th, 2009, 03:50 PM
#10
Re: Java calendar?
 Originally Posted by thatonedude
Oh, the calendar is a 400 width 400 height calendar in html coding.
Could you link to your current Calendar? Do the days have events associated with each or is it just a simple calendar showing the days of the week?
-
Jan 6th, 2009, 03:54 PM
#11
Thread Starter
New Member
-
Jan 6th, 2009, 04:10 PM
#12
Re: Java calendar?
Here is a simple script that should handle what you need.
http://javascript.about.com/library/blevent2.htm
I copied it to the desktop and it works fairly well. In the event.js file, you specify the events based on the date and enter the text in there. Then, when someone clicks on a date, the information at the top of the calendar changes to display the events.
The code might be a little annoying to modify in the way they jumbled it, but it would be a good exercise to space it properly and learn how everything goes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|