ToolKit Beta - DatePicker
My first impression with the end result is that it is VERY sexy.
I did find a logic issue, but overall the whole thing is super simple to get up and working.
I started with a blank php page. I clicked on the WA DatePicker icon and proceeded. I left the NAME field blank and filled in the rest. I let it create my form for me, and I called the form field "date". The following HTML code is what it generated... I saved the file and uploaded it to the server and found a blank input with no calendar. I then realized that the "id" needed to match. By simply adding "datepicker_1" to the input id, it all worked great.
I think either forcing a common id if the name is blank or a better more obvious explanation would be in order here.
function closeDatePicker_datepicker_1() {
var tElm = $('#datepicker_1');
if (typeof datepicker_1_Spry != null && typeof datepicker_1_Spry != "undefined") {
datepicker_1_Spry.validate();
}
var docElm = document.getElementById("datepicker_1");
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>
</head>
<body><form id="form1" name="form1" method="post" action="">date<input id="date" name="date" type="text" /></form>
</body>
</html>
Very nice product! I really like it.