My app makes a call to an API that returns a  dictionary. I want to pass information from this dict to JavaScript in the view. I am using the Google Maps API in the JS, specifically, so I'd like to pass it a list of tuples with the long/lat inf...
I want to display my CPU usage dynamically.  I don't want to reload the page to see a new value.  I know how to get the CPU usage in Python.  Right now I render a template with the value.  How can I continually update a page with a value from F...
I'm having troubles getting a Flask/Python variable passed to Javascript.   Basically, I'm importing from MySQL and have tried rendering the return in three different ways.    (43.8934276, -103.3690243), (47.052060, -91.639868), (45.1118, -95...
When pressing a button i call a javascript function in my html file which takes two strings as parameters (from input fields). When the function is called i want to pass these parameters to my flask file and call another function there. How would i a...
i'm trying to create something like Google Suggest Tool (via suggest api http://suggestqueries.google.com/complete/search?output=toolbar&hl=ru&q=query )   I'm listening input changes, and send data go GET:   $("#search_form_input&...
I working on a web project using Python and Flask. I was just wondering if I can access parameters sent by python in my external javascript files? It's working well with html files or with js embedded in html files but not when javascript is exte...
I have a model in Flask called Dog, with the parameters Name, Breed and Age. Through Jinja2 I show them in a template as follow:  <table> <tr> <td>Name</td> <td>Breed</td> <td>Age</td> </tr> {% fo...
This is my first dive into Flask + Jinja, but I've used HandlebarsJS a lot in the past, so I know this is possible but I'm not sure how to pull this off with Flask:  I'm building an app: a user enters a string, which is processed via pyth...
What is the best way to pass a variable from a Flask template into the Javascript file? Here is my code  I have a simple view in my webapp:  @webapp.route('/bars') def plot_d3_bars():   return render_template("bars.html", calendarMap...
I've searched to no avail.. I guess my question is a bit unique. I have a DIV with some content in it, that content get's brought in currently by passing the object of a SQL query into the template. That works fine, but doesn't allow me t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.