I am having a problem using the jQuery cycle plugin. On my page, I use it for image and text slideshows. The image slideshows work very well but one of the text slideshow is having a problem. Consider the code below. I am using the divs below as slides for the text slideshow.
<div>
<p>This is slide1</p>
<h4>author 1</h4>
</div>
<div>
<p>This is slide2</p>
<h4>author 2</h4>
</div>
If I use the code above as a static block in an HTML page, the slideshow works fine. However, if I generate the above piece of code through Javascript, I am getting an error. Here's what the Chrome console is giving me.
Cannot read property 'cycleW' of undefined
I am not able to figure out what this problem is, so any help would be really appreciated. Thanks!