You are still missing some scripts, I think the order they are in won't work, and:
As you are already runing another jQuery script on that page in noConflict mode, this code (as written) won't run:
Code:
var calendarInit = function(){
$(".dateBooking").datepicker({
dateFormat:'dd-mm-yy',
navigationAsDateFormat: true,
minDate: new Date(2009,12-1,11),
maxDate: new Date(2010,12-1,11),
beforeShow: readLinked,
onSelect: updateLinked,
showOn: "both",
buttonImage: "https://www.ires.ie/images/callendar.gif",
buttonImageOnly: true,
firstDay: 1
});
$("select[name=doa_dd]").change();
}
$(document).ready(function(){
setTimeout("calendarInit()", 1);
});
Make it like so:
Code:
var calendarInit = function(){
var $ = jQuery;
$(".dateBooking").datepicker({
dateFormat:'dd-mm-yy',
navigationAsDateFormat: true,
minDate: new Date(2009,12-1,11),
maxDate: new Date(2010,12-1,11),
beforeShow: readLinked,
onSelect: updateLinked,
showOn: "both",
buttonImage: "https://www.ires.ie/images/callendar.gif",
buttonImageOnly: true,
firstDay: 1
});
$("select[name=doa_dd]").change();
}
jQuery(document).ready(function(){
setTimeout(calendarInit, 1);
});
Use this code for calendar_booking.js:
Code:
function readLinked(){var mm=jQuery("select[name=doa_mm]:first");jQuery("#doa_linked").val(jQuery("select[name=doa_dd]:first").val()+"-"+jQuery("select[name=doa_mm]:first").val()+"-"+jQuery('option:selected',mm).html().substring(4,6));}
function updateLinked(date){jQuery("select[name=doa_dd]").val(date.substring(0,2));jQuery("select[name=doa_mm]").val(date.substring(3,5));}
jQuery(document).ready(function(){jQuery("select[name=doa_dd]").change(function(){jQuery("select[name=doa_dd]").val(jQuery(this).val());readLinked();});jQuery("select[name=doa_mm]").change(function(){jQuery("select[name=doa_mm]").val(jQuery(this).val());readLinked();});})
The scripts in the head should be ordered like so:
HTML Code:
<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
<![endif]-->
<script language="javascript">
function createWindow(cUrl,cName,cFeatures) {
var xWin = window.open(cUrl,cName,cFeatures)
}</script>
<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/imageMenu.js"></script>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="http://www.ires.ie/scripts/ui.jquery.js"></script>
<script type="text/javascript" src="http://www.ires.ie/scripts/calendar_booking.js"></script>
<script type="text/javascript" src="js/jquery.corner.js"></script>
<script type="text/javascript" src="SpryAssets/SpryMenuBar.js" ></script>
<script type="text/javascript" >
var $j = jQuery.noConflict();
$j("#content").corner()
$j("#navbar").corner()
$j(".AccordionPan . . .
Bookmarks