I have the following file i would like to put in a .js file. When I've tried in the past I get the "not a text/javascript" , "failed to load" error message.
I know how to do the src="{{=URL('static','js/swal/swalerror.js')}}" > stuff. How would I go about doing this ? Thanks ... ----------------------------------------------------------------------------------------------------------------------- <script> $("form input, form select, form textarea").on("invalid", function() { 'use strict' ; $(this).closest('form').addClass('invalid') ; Swal.fire({ type : 'error', title: 'Entry Errors Found!', text : 'Please Enter ALL Required fields marked in RED!', position : 'center', confirmButtonText : 'Continue' }) document.getElementById("swal2-title").style = 'color: #3333ff; font-size: 36px; ' ; document.getElementById("swal2-content").style = 'color: #ff0000; font-size:24px; ' ; } ); *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.