Hi again!

I found a way to do what I want, maybe there is a better way, but anyway :D

    function openJSON() {
        deferred = loadJSONDoc('json/Cities');
        deferred.addCallback(function (json) {
            var newUL = UL(null, map(
                function (item) { return LI(null, A({'href':'test?id='
+ item.id}, item.name))},
                json
            ));
            swapDOM('test', newUL);
        });
    }

Thanks for the attention!

-- 
Michel Thadeu Sabchuk
Curitiba - Brasil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to