Hi, I'm feeling a little lost with all these modules and how to get them to work together in Pylons.
I have been building templates with Mako and Webhelpers. I have parent templates that define the html head and the html body and then include child templates (using Mako's include function) which have the exact forms defined in them. I want to make a child template that has two select boxes in it, one for "type" and one for "subtype". The contents of the "subtype" box will be determined dynamically by what the user selects in the "type" box via the 'onchange' event handler. I have no idea the right way to do this. Some of the problems I am encountering are: -If I create the select box using a webhelper, how do I access the currently selected item as a python variable (to pass into the remote function I also defined using a webhelper)? -Since I am in a child template, there is no easy way for me to define javascript functions in the html head, correct? -I'm not sure of how/where I put logic that can populate the defaults of the select boxes when the template is first rendered. Do I need to go higher up and import something like ToscaWidgets to build my templates? Do I need to degrade my templates to explicitly define raw html and javascript instead of using webhelpers? The emphasis of this project is highly modular, reusuable code/templates so I need to not hardcode specific logic as much as possible. Any insight or solutions would be greatly appreciated. Thanks. -Ryan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
