You might want to check out the actual Flask mailinglist, it is a hell of a lot more active: http://flask.pocoo.org/mailinglist/
-- Markus On 2012-12-31 18:58, Bruce Eckel wrote:
At this point I'm just thrashing about trying to figure out how to get Jinja and Jquery to work together. Here's my current test file, after moving things about and sticking in tests to see if anything makes a difference. I'm not even getting the alert (I'm using Flask). Sorry for the mess and thanks for any pointers -- I've read through the docs enough to make a macro but I can't find anything anywhere about how to use Jquery with Jinja. {% macro pairingTable(title, tableData) -%} <table border="1"> <tr> <th>{{title}}<br>When Bar is on Your Name</th> </tr> {%- for row in tableData %} <tr id="tr635"> <td> {%- for partner in row %}<font size=+1><b>{{ partner }}</b></font> {%- endfor %} </td> </tr> {%- endfor %} </table> {%- endmacro %} <!doctype html> <head> {% set title="Exercise Pairs" %} <title>{{ title }}</title> <link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}"> <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> <script language="javascript" type="text/javascript"> $(document).ready(function() { alert("Document ready") $('#tr635').effect("highlight", {}, 3000); $("p").click(function(){ $(this).hide(); }); }); </script> </head> <body> <div class=page> <h1>{{ title }}</h1> {{ pairingTable("Raise One Hand", groups) }} </div> <p>If you click on me, I will disappear.</p> <p>Click me away!</p> <p>Click me too!</p> </body> -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To view this discussion on the web visit https://groups.google.com/d/msg/pocoo-libs/-/CDwzk-LshcAJ [1]. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pocoo-libs?hl=en. Links: ------ [1] https://groups.google.com/d/msg/pocoo-libs/-/CDwzk-LshcAJ
-- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pocoo-libs?hl=en.
