close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Datepicker not working

Thread began 10/16/2012 8:20 pm by Martin | Last modified 10/17/2012 5:26 pm by Martin | 1819 views | 4 replies |

Martin

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Martin

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

Attached Files
appointment.zip
Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Martin

Thanks Jason! I will check into it further!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...