I would like to update a contact information table after a selection is
made in an autocompleteField. Everything I tried so far didn't work.

I put an onchange="" in the div containing the autocompletefield :

 <div class="corporation" onchange="update_contact(); return false;">
    ${a_c_field.display()}
</div>

then, a javascript look at the value of the hidden field (which is good
if I look at the value in the _post string).

function update_client() {   
        var container = getElement("contactsearch_hidden");
        var contact_id = container.value;

But it look like the contactsearch_hidden (named like this in the widget
init) is not set until the form is submited.

any clue for the right direction?

Francis


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to