Ok, I dug into MochiKit and figured it out. TG code stays the same,
kid template unchaged. Here is the new JS:
function requestAvailableParameters(option) {
str = getForm()
var s = "availableParameters"+str
var d = doSimpleXMLHttpRequest(s);
d.addCallback(showAvailableParameters);
}
function showAvailableParameters(result) {
var v = document.getElementById('availableParameters')
v.innerHTML = result.responseText
}
Personally, I feel this is a MUCH easier way of manipulating AJAX
objects because you are using templates and the normal tubogears stuff
instead of messing around with JSON. Don't know how y'all feel about
it, but I am interested in your response.
-chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---