Calendar for diary

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Calendar for diary

Post by aceconcepts »

Hi,

I am creating a diary (appointment book) and I need to integrate a calendar for date selection. Does anyone know of any good calendar?

Thanks.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Calendar for diary

Post by VladSun »

Client-side or server-side?
Client-side: http://marcgrabanski.com/code/ui-datepicker/
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Calendar for diary

Post by aceconcepts »

Hi,

Thanks for the suggestion - very good.

However, I am having a bit of trouble trying to display an inline instance of the calendar (http://marcgrabanski.com/code/ui-datepicker/)

Here is what I have:

This is what's in the <head>

Code: Select all

 
<link rel="stylesheet" href="sys/ui.datepicker.css" type="text/css" media="screen" title="core css file" charset="utf-8" />
<!--Include jQuery-->
<script src="sys/jquery.js" type="text/javascript" charset="utf-8"></script>
<!-- Include Core Datepicker JavaScript -->
<script src="sys/ui.datepicker.js" type="text/javascript" charset="utf-8"></script>
 
and this is what's used in the body:

Code: Select all

 
<span id="inlineDemo"></span>
                    
<script type="text/jsdemo" charset="utf-8" class="demojs">
$('#inlineDemo').datepicker({ 
    onSelect: function(date) { 
        alert(date); 
    } 
}); 
</script>
 
Nothing displays.

It works when I use it as a popup though!

Any thoughts?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Calendar for diary

Post by RobertGonzalez »

Moved to Client Side.
Post Reply