Hi folks,
When I attempt to use controller logic like so:
...
@turbogears.expose(format="xhtml-strict")
def default(self, *args, **kwargs):
...
if first_req1:
# send kid-template and data to be filled in
...
return (tg_template="xyz", autorefresh_url=url_after_1st_req,
data=data...)
else:
# all subsequent accesses (via url_after_1st_req)
# send just the data...
return (data=data)
I get a runtime kid-template-engine error that says:
"All templates must be in a package"
I was under the impression for all the ajaxian (2nd request onwards)
request, there is no need to send a template, since its known already.
What is the correct doSimpleXMLHttpRequest usage syntax, so
that every ajaxian request for content works ok - to change the
contents of a div via .innerHTML updates.
Thanks,
/venkat
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---