Actually i am using the function active_dates() ...in mootools-cal-public.js file
like this
- Code: Select all
function activate_dates(){
// add custom events here - eg to update booking form
var dateStart=document.id('date_start');
// event delegation method - requires "more" file
document.id('the_months').addEvent('click:relay(.clickable)',function()
{
if(!this.hasClass('booked'))
{
dateStart.set('value',this.id);
}
});
var dateStart=document.id('date');
$$('li.clickable').each(function(el)
{
if(!el.hasClass('booked'))
{
el.addEvent('click',function()
{
document.location.href='book.php?date='+this.id;
}).setStyle('cursor','pointer');
}
})
}
in this function it is sending the page to url book.php with particular date:- document.location.href='book.php?date='+this.id;
But the thing which i want i want to send the page to different url for every catagory for which calendar is selected.
for example if it is showing three hotel room catagories ..like
1.Deluxe //should go to book1.php
2.Executive //should go to book2.php
3.Premium //should go to book3.php
Is it possible to create such a function so that it can redirect it to different pages.
regards
amit