Results 1 to 12 of 12

Thread: Java calendar?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Location
    That one place where things are
    Posts
    7

    Java calendar?

    Is there any way to create a java calendar that auto switches from month to month and shows the current day?

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Location
    That one place where things are
    Posts
    7

    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.

  4. #4
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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.

  5. #5
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Java calendar?

    So are we talking about Java or Javascript then? Because Javascript has a separate forum and I could move it there for you so people who know more about Javascript can see your thread


    Has someone helped you? Then you can Rate their helpful post.

  6. #6

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Location
    That one place where things are
    Posts
    7

    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.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Location
    That one place where things are
    Posts
    7

    Re: Java calendar?

    Oh, the calendar is a 400 width 400 height calendar in html coding.

  8. #8
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Java calendar?

    OK, it looks like you want to add a calendar to a website, so it's javascript you want


    Has someone helped you? Then you can Rate their helpful post.

  9. #9

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Location
    That one place where things are
    Posts
    7

    Re: Java calendar?

    Thanks manavo

  10. #10
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: Java calendar?

    Quote 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?

  11. #11

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Location
    That one place where things are
    Posts
    7

    Re: Java calendar?

    http://www.monteyproductions.com/hpw.../january09.htm is the link to the january calendar I created

  12. #12
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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
  •  



Click Here to Expand Forum to Full Width