Hi Denes,
> 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 both Safari and Firefox, when I request a page with a field of type
date as the first field visible it has the focus, however, when I
click it the calendar doesn't show up, that is what I meant by the
calendar breaks.
> 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();
Thanks for your explanation, now I know why it doesn't work, and more
important, your solution solved the problem.
Yes indeed.
Massimo:
> did you try?
> jQuery(document).ready(function(){ jQuery
> ("input:text:first:visble").focus(); });
No I put:
jQuery("input:text:first:visble").focus();
in the function web2py_ajax_init() in the file web2py_ajax.html. Which
is called in:
jQuery(document).ready(web2py_ajax_init);
I thought that wouldn't make any difference.
Kind regards,
Annet.