Datepicker not working
I have an old webpage that a client pointed out to me that the datepicker is not working.
appointment.php
I cannot see why it is not firing?
Any thoughts or suggestions would be appreciated!
Thanks,
Martin
I have an old webpage that a client pointed out to me that the datepicker is not working.
appointment.php
I cannot see why it is not firing?
Any thoughts or suggestions would be appreciated!
Thanks,
Martin
you conflicting versions of jquery on this page.
this line attaches jquery version 1.7 for the date picker:
<script type="text/javascript" src="webassist/forms/fd_sharp_default/Datepicker/js/jquery-ui-1.7.1.custom.min.js"></script>
further own the page, you attach version 1.6:
<script type="text/javascript" src="../ScriptLibrary/jquery-latest.pack.js"></script>
these two are clashing and causing the date picker to not work.
Hi Jason,
Thanks for the reply!
However, I saw that script file myself and removed it.
Here is what is listed in the head currently.
<link href="css/screen.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/dhtml.js"></script>
<!--[if IE]><script type="text/javascript" src="dmx/lib/excanvas-compressed.js"></script><![endif]-->
<link rel="stylesheet" type="text/css" href="dmx/widgets/Lightbox/styles/default/style.css" />
<script type="text/javascript" src="dmx/dmx.core.js"></script>
<script type="text/javascript" src="dmx/widgets/Lightbox/dmx.lightbox.js"></script>
<script src="webassist/progress_bar/jquery-blockui-formprocessing.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="webassist/forms/wa_servervalidation.js" type="text/javascript"></script>
<script src="webassist/forms/wa_clientvalidation.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationCheckbox.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryValidationCheckbox.js" type="text/javascript"></script>
<link href="webassist/forms/fd_sharp_nrn.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="webassist/forms/fd_sharp_default/Datepicker/css/jquery-ui-1.7.1.custom.css" rel="stylesheet" />
<script type="text/javascript" src="webassist/forms/fd_sharp_default/Datepicker/js/jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javascript">
$(function(){
$('#Best_Day').datepicker({
changeMonth: true,
changeYear: true,
onClose: closeDatePicker_Best_Day
});
});
function closeDatePicker_Best_Day() {
var tElm = $('#Best_Day');
if (typeof Best_Day_Spry != null && typeof Best_Day_Spry != "undefined") {
Best_Day_Spry.validate();
}
var docElm = document.getElementById("Best_Day");
var tBlur = docElm.getAttribute("onBlur");
if (!tBlur) tBlur = docElm.getAttribute("onblur");
if (!tBlur) tBlur = docElm.getAttribute("ONBLUR");
if (tBlur) {
tBlur = tBlur.replace(/\bthis\b/g, "docElm");
eval(tBlur);
}
}
</script>
I have uploaded it, refreshed the page and it still does not fire. Any suggestions?
Thanks,
Martin
there are still javascript conflicts on the page.
if you use Fire Fox and Fire Bug to view the javascript error console, there are errors happening for the DMX scripts on the page, these JS errors are causing the datepicker to fail.
Thanks Jason! I will check into it further!
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.