jquery use plugin on dynamic content
<p>I'm trying to create an image gallery from an rss feed with the galleryview plugin. When the html content is statically in the page the plugin works but when I generate the html dynamically from the rss feed calling the plugin seems to do nothing. Here is the code I'm using:</p>

<pre><code>function getScrollerContent() {
    $.get('photos.rss', {}, function(xml) {
        var contentHtml = '';
        var filmStripHtml = '&lt;ul class="filmstrip"&gt;';
        $('item', xml).each(function(i) {
            contentHtml += '&lt;div class="panel"&gt;';
            var imgSrc = $(this).find('image').text();
            contentHtml += '&lt;img src="' + imgSrc + '" /&gt;';
            contentHtml += '&lt;div class="panel-overlay"&gt;';
            contentHtml += '&lt;h2&gt;&lt;a href="' + $(this).find('link').text() + '"&gt;' + $(this).find('title').text() + '&lt;/a&gt;&lt;/h2&gt;';
            contentHtml += '&lt;p&gt;' + $(this).find('desc').text() + '&lt;/p&gt;';
            contentHtml += '&lt;/div&gt;';
            contentHtml += '&lt;/div&gt;';
            filmStripHtml += '&lt;li&gt;&lt;img src="' + imgSrc + '" /&gt;&lt;/li&gt;';
        });
        filmStripHtml += '&lt;/ul&gt;';
        contentHtml += filmStripHtml;

        $('#photos').append(contentHtml);
    });

    $('#photos').galleryView({
        panel_width: 800,
        panel_height: 300,
        frame_width: 100,
        frame_height: 100
    });


}

$(getScrollerContent);
</code></pre>

<p>What am I doing wrong?</p>
