Hey guys.  I have an application that has a series of selectors, which
serves up a page inside a div when certain things are selected.  I am
trying to have the page served as a Kid template through turbogears so
I can forgo all the TABLE(null, mapping ...) Blahh blah... Javascript.

I figured out that loadJSONDoc() can accept a string from turbogears
and will display it properly in the div, but when I try having
turbogears return a filled in template, I get no results in the div.

Here are some snippets of code:

javascript that runs when someone clicks an item:

function requestAvailableParameters(option) {
        str = getForm()
        var s = "availableParameters"+str
        var d = loadJSONDoc(s);
        d.addCallback(showAvailableParameters);
}

function showAvailableParameters(result) {
        currentPageList = result
        var v = document.getElementById('availableParameters')
        v.innerHTML = currentPageList
}

The name of the page is "availableParameters", getForm simply
determines which checkboxes are active on the page.


Here is my turbogears code:

@expose(template="turbolink.templates.extractor.availableParameters")
    def availableParameters(self, **kw):
        return dict()

and availableParameters.kid:
<html xmlns="http://www.w3.org/1999/xhtml";>
Hi mom!
</html>

Any info would be usefull.

-percious


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