[Flask] Anything I need to know using Jquery with Flask?
Anthony Ford
ford.anthonyj at gmail.com
Fri May 27 17:33:55 EDT 2016
On Fri, May 27, 2016 at 4:27 PM, Alex Hall <ahall at autodist.com> wrote:
> Exactly, but I wasn't sure where else to ask. The only other thing I can
> think of is that, because of the way my templates are set up, the script is
> in the body of the page and not the head. But that shouldn't matter.
No, it really shouldn't. I use that approach with a lot of my stuff too. It
makes pages load a bit faster (there's an article on it somewhere that I
don't really feel like looking up right now). One thing that can be a
gotcha with that is to make sure your jQuery itself (jquery.xyz.min.js
usually) is sourced before your page JS. Now if the onChange is the only
thing not working, then that won't be your problem.
Are you familiar with the JS debugger in Chrome? If not, look into it. I
find it amazingly useful for writing the JS side of my apps. In case you
aren't, see these links:
https://www.codeschool.com/courses/discover-devtools
https://developer.chrome.com/devtools
https://developer.chrome.com/devtools/docs/videos
Anthony Ford,
KF5IBN,
ford.anthonyj at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20160527/41cd785a/attachment-0001.html>
More information about the Flask
mailing list