On Oct 26, 12:00 pm, machineghost <[EMAIL PROTECTED]> wrote:
> Is the error occurring when the page loads, because of this:
>   conn(window, 'onload', model_id_changed);

Yes, the error occurs here (when the page loads).

I think I've solve the problem by changing:

var model_id = event.target().value;

to:

var model_id = $('form_model_id').value;

In this function:

 function model_id_changed(event) {
    var model_id = event.target().value;
    var def = doSimpleXMLHttpRequest("/model/" + model_id + "/
get_lab");
    def.addCallback(replace_lab);
 };

The javascript on the page was mostly taken from <<http://
docs.turbogears.org/1.0/RoughDocs/dynamicform>>, so I'm actually a
little over my head here. Now I have a function, model_id_changed,
that isn't using it's argument!

Thanks for your help,

Steve




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to