I need to build a form in a page that outputs javascript instead of HTML. I did the request page from page trick already but it's too slow. I might be able to use the templating system as it but I can't seem to set the mime type to text/javascript on the return page. This function does exactly what I need except it does not appear to work.
I read the docs, ad_form seems a little complicated and I suspect it's an upvar problem. I guess I'll try and track it down. Any reason this function is declared private?