Hi everyone, I'm writting a Web App using Django and I got problems to make appear or deasappear some content.
Here is the code I was using to write a part of the windows: <div id=area> <table> <tr> <th>Episode</th> <th>Name</th> <th>Season</th> <th>Date</th> </tr> {% for episode in episodes %} <tr> <td> {{ episode.number }} </td> <td> {{ episode.title }} </td> <td> {{ episode.season }} </td> {% if episode.date %} <td> {{ episode.date }} </td> {% endif %} </tr> {% endfor %} </table> </div> It works well but now I wan't the window to be empty when opening itself, then get this content when I clic on a button So I use a javascript function looking like: function fill_area(tabl) { document.getElementById('area').innerHTML = '<table></br><tr></br><th>Episode</th></br><th>Name</th></br><th>Season</th></br><th>Date</th></br></tr></br>'; document.getElementById('area').innerHTML += '</table>'; } Here is half the code. It works, but i can't use variables in it because Javascript doesn't recognize them. I've tried to pass the "episodes" object when calling the fill_area() function but doesn't work either. Someone's got an idea? Thank You. John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---