In previous versions of web2py I added this line of code
jQuery('input:text:not(.date):first:visible').focus();
to this function
function web2py_ajax_init(target) {
jQuery('input:text:not(.date):first:visible').focus();
jQuery('.hidden', target).hide();
jQuery('.error', target).hide().slideDown('slow');
web2py_ajax_fields(target);
web2py_show_if(target);
};
in web2py.js to give the first field in a form focus.
In web2py version 2.7.4 this function has been replaced, and I wonder where
I have
to put the line of code to give the first field in a form focus again.
Also, adding this:
'toolbar=yes, location=yes, directories=no, status=no, menubar=no,
scrollbars=yes, resizable=yes'
to the popup function
newwindow = window.open(url, 'name', 'toolbar=yes, location=yes,
directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes'
'height=400, width=600');
doesn't give the window scrollbars, why not?
Kind regards,
Annet.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.