Date Picker

0 views
Skip to first unread message

tdnnash25

unread,
Jul 30, 2009, 6:34:50 PM7/30/09
to Professional PHP Developers
I'm trying to figure out how to either write this code or find some
good product out there already that does what I need.

I want clients to be able to look at a calendar that shows 3 months
side by side. The purpose is for them to click on a date that they'd
like to schedule an appointment. So, if there are appointment times
available on July 31, 2009, I want them to be able to click on the
date and then see available times during that day.

If there are not available times during that day, I don't want them to
even be able to click on the day.

So, javascript? php? ajax? Not sure where to look as all the research
I've been doing up to this point isn't getting me where I want to be.
I will need a way for the calendar to read mysql or something so it
knows which days, and which times are or aren't available.

Check out Schedulicity.com to see what I am talking about - I stumbled
across this site yesterday and it is almost exactly what I want to
accomplish. You will have to actually act like you are booking an
appointment to see what I'm talking about.

Leo Baiano

unread,
Jul 30, 2009, 6:55:57 PM7/30/09
to Professi...@googlegroups.com
I do not know any script ready to do that.

If I were to develop something like this would start looking for
references in Jquery plugins, if I mistake plugin is ready to
schedule.

I think Jquery to the effects and PHP + Mysql controlling the records
solve the problem.


2009/7/30 tdnnash25 <tdnn...@gmail.com>:
--
Amplexos,

Leo Baiano
http://www.leobaiano.com
http://www.blog.ljunior.com
http://www.mcelebridades.com
http://www.twitter.com/leobaiano

Konstantin Rozinov

unread,
Jul 30, 2009, 7:45:48 PM7/30/09
to Professi...@googlegroups.com

Robert Gonzalez

unread,
Jul 31, 2009, 12:01:32 AM7/31/09
to Professi...@googlegroups.com
jQuery datepicker plugin. I think its part of UI.
--
Robert A. Gonzalez

Leo Baiano

unread,
Jul 31, 2009, 6:38:19 AM7/31/09
to Professi...@googlegroups.com
I knew there had to be a Jquery plugin

:-)

2009/7/31 Robert Gonzalez <robert.anth...@gmail.com>:

tdnnash25

unread,
Jul 31, 2009, 11:03:12 AM7/31/09
to Professional PHP Developers
Thanks guys, I'll look into that.

Can you go here though and tell me what this might be written with?

http://www.schedulicity.com/MakeReservation.aspx?action=day&business=SSLXV5&service_id=21561&resource_id=9004

javascript? I'm pretty much a newb, but I like the way that calendar
looks and what it does. When you load this page you'll see 3
calendars side by side. Somehow you can control which days are
useable and which aren't. Then, when you click on a day that is
useable, you see which time slots are available. This is pretty much
the functionality that I'm looking for. Most calendars that I've seen
while doing research show the events on the certain day you are
choosing. Since this will be for a customer facing project I DO NOT
want customers to see the events. I just want them to know which time
are and aren't available. Now, for the internal facing site, I will
obviously want them to see the events on the date (the employees that
is).

Again, what do you think that calendar at schedulicity.com is written
in? And, it's gotta interface with a database somehow. Any pointers
for a newb?

Gary Every

unread,
Jul 31, 2009, 5:41:38 PM7/31/09
to Professi...@googlegroups.com
This is classic AJAX. When you click on a date, it sends a call thru ajax, which then lets javascript change the value of a <DIV> (that's where the available times are kept) Those times are clickable with the date already in the GET line. Pretty sweet. It'll teach you a lot about js and ajax to do this, so dig in to it.

Ya might want to grab mootools, as that's what it looks like they used. Real nice JS package, similar to jQuery

g.;
--
Gary Every
"Pay it Forward!"

darth eroz

unread,
Aug 7, 2009, 4:36:50 AM8/7/09
to Professi...@googlegroups.com
Yes just Download jquery datepicker and edit some codes telling the script that if the user selected a date then trigger the div layer to appear from GET page vis-a-vis AJAX.

Akash

unread,
Aug 11, 2009, 1:55:16 AM8/11/09
to Professional PHP Developers
Use jquery date plugin and attach callback for the date selection.
Whenever date is selected, make a AJAX call and fetch schedules for
selected day and populate data in the div through javascript.

On Aug 7, 1:36 pm, darth eroz <b4rr...@gmail.com> wrote:
> Yes just Download jquery datepicker and edit some codes telling the script
> that if the user selected a date then trigger the div layer to appear from
> GET page vis-a-vis AJAX.
>

Bruno Reis

unread,
Aug 11, 2009, 7:27:14 AM8/11/09
to Professi...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages