On Fri, 11 May 2007 at 16:37, Francis Lavoie wrote:
> 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?

The names used in the html of the form are different from the names used
in the controller code.  FormEncode does some magic on them.  Check out
the view source of the posted page and you'll be able to figure out the
naming pattern pretty quickly.  It is also documented in the FormEncode
docs.

--David

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