in my template file, there's a var which i can use {{var1}} to get its value. and if i put the code
<script> document.write({{var1}}); </script> DIRECTLY in my template file, it's OK, the var1's value appears in my .html file. but if I use <script language="JavaScript" src="/site_media/my.js"></script> in template file, and then in my.js, write document.write({{var1}}); it doesn't work. there's a javascript error occured...really confused about this. and for my project, I don't want to insert all the js codes in template file, but in a independent js file. thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---