Hi All,

I have a few form fields (I don't need all) that I use for a XMLHttp
request. I found some code in the TurboGear forum. Is this the best way
to do it or is there some MK function I overlooked?

    var query = Array();
    var contents = formContents('theform');
    for (var j=0; j<contents[0].length; j++)
        query[contents[0][j]] = contents[1][j];

    alert(query['...some.fieldname.here...']);

Thanx, Bart


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