There is wrong with javascript, here you can copy and paste the
bugfix:
<script type="text/javascript">
function f%s_read_linked()
{
\$("#%s").val(\$("#%s").val() + "/" + \$("#%s").val() + "/" + \$("#
%s").val());
return {};
}
function f%s_update_linked(date)
{
\$("#%s").val(date.substring(3, 5));
\$("#%s").val(date.substring(0, 2));
\$("#%s").val(date.substring(6, 10));
}
\$("#%s").datepicker(\$.extend({}, {
minDate: new Date(%s, 1 - 1, 1),
maxDate: new Date(%s, 12 - 1, 31),
beforeShow: f%s_read_linked,
onSelect: f%s_update_linked,
showOn: "both"
%s
}, \$.datepicker.regional["%s"], %s));
</script>
Don´t forget to add jQuery UI.
Have fun with jQuery ;-)
On Dec 10, 2:06 pm, "Matthias N." <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I'm desperately trying to use the sfWidgetFormJQueryDate widget from
> the sfFormExtraPlugin.
>
> I downloaded jquery-1.2.6.min.js and added it to the response but I
> always get the following error (copied from Firebug):
>
> $.datepicker has no properties
> [Break on this error] }, $.datepicker.regional["en"], {}));
>
> As I have no idea of JQuery I'm a bit lost here. Can someone please
> give me a hint what I am doing wrong or what piece is missing to get
> it work?
>
> regards,
> Matthias
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---