I thought maybe some javascript or ajax to include with a <script> in
the destination page, but how can I do it?
Must I write a javascript with document.write on the django side or
can I import the html output directly with a javascript and a browser
side include?
Do you have any examples?
--
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net
SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928
Rispetta l'ambiente: se non ti è necessario, non stampare questa mail
First I created a settings.py that only has the TEMPLATE_DIRS setting.
Next, I created my template.
Last, I created a cgi script that loads and renders my template. I used
a more generic python CGI module to handle post data.
If you don't want to use the django template system exclusively,
consider using an iframe for a "browser side include".
Cheers!
Jeff Anderson
> I have used the django template system to generate web pages independent of
> a django project.
>
> First I created a settings.py that only has the TEMPLATE_DIRS setting.
> Next, I created my template.
> Last, I created a cgi script that loads and renders my template. I used a
> more generic python CGI module to handle post data.
>
> If you don't want to use the django template system exclusively, consider
> using an iframe for a "browser side include".
I cannot use any server side technologies and I cannot use iframes.
> If i understand you correctly, what you need is just AJAX. Just have
> your views produce xml or json or perhaps even html snippets. And use
> any javascript suite to call this view and then insert the data into
> your page. I prefer spitting out data in a json format, and then using
> something like YUI or jquery to call and then parse.
Do you have any example?