Hi all

I just started with mochikit and I'm making some mess between python
and javascript data structures. I don't know much about javascript but
I believe that the only "high level" data structure is the array. Well,
when reading the mochikit.Base doc there seems to be a lot of  "magic"
going around.
I will slowly read all the docs properly but by now I have the
following situation:

        function retrieveCmd(values)   // "values" are the values from
a form
        {
           var e = doSimpleXMLHttpRequest('runCmd2', values);
           e.addCallback(cb_retrieveCmd);
           return false;
        }


        function cb_retrieveCmd(results)
        // here is the problem. "results" is a dictionary. how do I
deal with it?
       // the solution below doesn't work
        {
         for (var hostname in results) {
                 var term = document.getElementById('term_' +
hostname);
                 term.innerHTML = results[hostname];
             }
        }


Using the mochikit interpreter I noticed that "results" is a [object
XMLHttpRequest]
but I'm still confused


Thanks
Gustavo Rahal


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

Reply via email to