Re: newbie question about using javascript to handle vars in template..

2006-11-12 Thread Igor Guerrero Fonseca
I think that you need to do some: render_to_response to that *.js file Because Django is not replacing the *.js Django is replacing the *.html file > in my template file, there's a var which i can use {{var1}} to get its > value. and if i put the code > > > document.write({{var1}}); > > > DI

newbie question about using javascript to handle vars in template..

2006-11-12 Thread pength
in my template file, there's a var which i can use {{var1}} to get its value. and if i put the code document.write({{var1}}); DIRECTLY in my template file, it's OK, the var1's value appears in my .html file. but if I use in template file, and then in my.js, write document.write({{var1}});