This question may be related to a resolved thread.
This is the SC code we use:
{exp:safecracker channel="requests"}
<label for="comment_expiration_date">Comment Expiration Date</label>
<input type="text" name="comment_expiration_date" id="comment_expiration_date" value="{comment_expiration_date}" maxlength="23" size="25">
{/exp:safecracker}and when we view the template - datepicker does not fire.
I’ve read the resolution to the above link and unfortunately it did not work for us since our dev site is 99% configured like our live site but unlike the live site, the date picker works there, same CP settings, all addons, modules, plugins and extensions enabled. Just does not work on our live site.
We conducted some script debugging and found out that these lines of the source code are automatically being commented out.
// <![CDATA[
//$(document).ready(function() {
//if (typeof SafeCracker == "undefined" || ! SafeCracker) { var SafeCracker = {markItUpFields:{}};}
//$.datepicker.setDefaults({dateFormat:$.datepicker.W3C+EE.date_obj_time});
//$.datepicker.setDefaults({defaultDate: new Date(1347003653000)});
$("input[name=expiration_date]").datepicker();
$("input[name=comment_expiration_date]").datepicker();});
// ]]>Even if we hard code an uncommented version, the source code still outputs the lines commented out! - which could most probably be the root cause or related to the problem.
On a closely related note, the http://site.com/?ACT=jquery&ui=datepicker shows “Disallowed Key Characters.” when accessed via the browser (404) and if we correct the url by removing the “amp;” into—-> http://site.com/?ACT=jquery&ui=datepicker - it pull up the jQuery UI Datepicker source.
We’ve enabled and disabled all our addons - no date picker
We’ve changed the .htaccess files and returned the index.php mod to default settings - no date picker.
We’ve reinstalled safecracker v2.1 - no date picker
We have EE 2.5.2.
Any inputs are greatly appreciated.