> <script>
> var conn = MochiKit.Signal.connect;
>
> function init_client_selector(event) {
^^^^^^^^^^^^^^^^^^^
this has to read "client_id_changed".
> var client_id = event.target().value;
> var def = doSimpleXMLHttpRequest('/path/to/get_projects',
> {client_id : client_id});
> def.addCallback(function(req) {
> var projects = evalJSONRequest(req).projects;
> var projects_select =
> currentDocument().forms['myform'].elements['projects'];
> replaceChildNodes(projects_select,
> map(function(project) {
> return OPTION({value : project.id}, project.name);
> }, projects));
> });
> }
>
>
>
> function init_client_selector() {
> conn(currentDocument().forms['myform'].elements['client_id'],
> 'onchange', client_id_changed);
> };
> conn(window, 'onload', init_client_selector);
^^^^^^^^^^^^^^^^^^^^
This has to be "client_id_changed"
Sorry.
diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---