>
> The h5Validate does the trick for me. I can't get Webshims to work so that
> wasn't a viable option. It is all-enclusive so it is a more ideal solution
> than h5 but for some reason I have trouble making some js work with things
> like web2py.
>
It should work. Perhaps you're loading it before jQuery. Note, if using the
default layout.html with {{include 'web2py_ajax.html'}}, jQuery will be
loaded automatically by web2py_ajax.html -- so anything that depends on
jQuery should be loaded after that. If you're adding it to response.files,
you must do so before {{include 'web2py_ajax.html'}} because response.files
is actually processed within web2py_ajax.html (jQuery is automatically
inserted before all other files in response.files, so no need to worry
about jQuery dependencies).
> One last thing, if you will. Where can you find the programming for the
> response.flash?
>
The default layout.html view includes the following:
<div class="flash">{{=response.flash or ''}}</div>
So, the styling is controlled by the CSS for the "flash" class in
web2py.css. Animation is controlled by code in web2py.js:
jQuery(function() {
var flash = jQuery('.flash');
flash.hide();
if(flash.html()) flash.slideDown();
web2py_ajax_init(document);
web2py_event_handlers();
});
You can either edit that JS code, or just use your own custom class for the
flash message so the web2py code won't have any affect on it.
Anthony