Slight change to javascript function within an availability calandar

We need a experienced javascript/php programmer to make a small adjustment to an availability calendar.

javascript skills essential we could provide php support.

[url removed, login to view];task=view&id=261&Itemid=22

The calendar is fully functional and working, it runs off a database to display availability for property. It allows you to select 2 dates then runs an ajax request to return a price.

Each cell of the calendar has a colour red for booked white for bookable. We need to display the change over days as half red half white and they need to be able to be selected as either the first or last day of someones holiday. The way we have written it only defines valid dates and invalid dates. We need some one to write a function that identifies and references change over days, check to see if its a end date or a start date, output a different image for the cell, allow the date to be clickable. It was designed fro users to be able to select nights they wished to stay instead of days.

below is one of the js functions.

// {{{ isDateWithinValidRange()


* Return true if given date is within valid date range.


* @param Array inputDate-Associative array representing a date, keys in array:year,month and day

* @return Boolean dateWithinRange





if(this.invalidDateRange.length==0)return true;

var month=inputDate.month+'';




var dateToCheck=inputDate.year+month+day;

for(var no=0;no<[url removed, login to view];no++){

if(![url removed, login to view][no].fromDate&&[url removed, login to view][no].toDate>=dateToCheck)return false;

if(![url removed, login to view][no].toDate&&[url removed, login to view][no].fromDate<=dateToCheck)return false;

if([url removed, login to view][no].fromDate<=dateToCheck&&[url removed, login to view][no].toDate>=dateToCheck)return false;


return true;



Habilidades: Javascript, PHP

Veja mais: javascript availability calendar, uk php programmer, property id, programmer uk, programmer php in uk, programmer javascript, php programmer in uk, need a programmer uk, return false javascript function within function, slight javascript, java function changeto, isdatewithinvalidrange, javascript calendar free red color, javascript slight, javascript bookable calendar, javascript return false function within function, free php calender fromdate todate, valid id, php programmer uk, need a javascript programmer, javascript php, function, change red, boolean, task javascript php

Acerca do Empregador:
( 1 comentário ) exeter, United Kingdom

ID do Projeto: #175066

Concedido a:


Hi, I am new bie for GAF, but highly experienced programmer in javascript with a good knowledge of php also. I think it will be a child's play for me. Regards

$75 USD em 2 dias
(18 Comentários)

2 freelancers estão ofertando em média $63 para esse trabalho


Please check PM.

$50 USD in 3 dias
(1 Comentário)