Exactly right, this was a stupid question it turns out :|.  Just need
to make a unique id using some combination of say {{forloop.counter}}
and {{video.id}}, {{video.not}} and yes s1.write
('idDynamicallyGenerated') should match the id generated for the <p
id='idDynamicallyGenerated'>.  I think I fixed this within 5 minutes
of posting the question but I posted after about 1/2 and hour of
exasperated face-palming.  Thanks for the input though!

On Jan 26, 1:29 am, micval <micv...@gmail.com> wrote:
> Don't know anything about SWFObject, but it seems to me, that s1.write
> ('preview') puts all the video objects in the first paragraph. In the
> for loop, all the paragraphs get assigned the same id='preview', which
> they should not, as the DOM gets confused. ID of a node must be unique
> throughout the document.
>
> On Jan 25, 4:44 am, Skylar <skylar.savel...@gmail.com> wrote:
>
> > I have a simple page with not much css and just trying to iterate over
> > some videos and get them all to display on the same page.  They seems
> > to be stacking on top of eachother rather than each having it's own
> > space.  This is not really a Django issue but I'm wondering if anyone
> > has had a similar issue and could share some insight.
>
> > Thanks,
>
> > {% block video %}
> > <p>The Video Block</p>
> > {% for video in videos %}
> > <div class="videoplayer">
> > <p id='preview'>The player will show in this paragraph</p>
> > <script type='text/javascript' src='{{MED}}/swfobject.js'></script>
> > <script type='text/javascript'>
> > var s1 = new SWFObject('{{MED}}/player.swf','player','400','300','9');
> > s1.addParam('allowfullscreen','true');
> > s1.addParam('allowscriptaccess','always');
> > s1.addParam('flashvars','file={{MED}}/{{video.file}}');
> > s1.write('preview');
> > </script>
> > </div>
> > {% endfor %}
> > {% endblock %}
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to