On Jun 26, 6:51 am, annet <annet.verm...@gmail.com> wrote:
> Massimo,
>
> When I add this line of code:
>
> $("input:text:first:visible").focus();
>
> to the core_ajax_init() function in web2py_ajax.html, the calendar
> breaks when the first field in a form is of type date. Is there a way
> to solve this.

What do you mean by the calendar breaks?
I just had a little time to test and Firefox does not have a problem
focusing on a date field.

In strict HTMLese there is no type date, it is type text class date.
So you could change the selector to skip over class date fields (if
that is what you want):

$("input:text:not(.date):first:visible").focus();

Something nice to have:
http://acodingfool.typepad.com/blog/pdf/jquery_1.3_cheatsheet_v1.pdf


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to