Jquery Cycle2 slideshow - load images from server, ASP .NET

I'm trying to use Cycle2 slideshow plugin with ASP .NET. Images are dynamically loading from server.

Slideshow doesn't work and images are loaded/shown one after the other in the page but when I check the page html in chrome inspect element, html looks fine.

I just wont to know how to load images from server side(dynamically) to the slideshow.

Here is my HTML Code

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title></title>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
  <script src="http://malsup.github.com/jquery.cycle2.js"></script>

  <script type="text/javascript">
    $(document).ready(function() {
      $("#imageUrls").load("LoadImages.aspx", function() {
        $('.cycle-slideshow').cycle();
      });
    })
  </script>

</head>

<body>
  <div id="imageUrls" class="cycle-slideshow"></div>
</body>

</html>

Answers


Finally found the mistake. Corrected code.

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title></title>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
  <script src="http://malsup.github.com/jquery.cycle2.js"></script>

  <script type="text/javascript">
    $(document).ready(function() {
      $("#imageUrls").load("ImageLoad.aspx", function() {
        $('#imageUrls').cycle();
      });
    })
  </script>

</head>

<body>
  <div id="imageUrls"></div>
</body>

</html>

Need Your Help

Cairo introspection errors in Eclipse with PyDev `TypeError: Couldn't find conversion for foreign struct 'cairo.Context'`

python-3.x eclipse-plugin gtk pydev cairo

I am working on adding a printer interface to some home-brewed Python3 code with a Gtk3 UI, using (mostly) Eclipse Indigo with the PyDev plugin.

iPhone webapp: run JavaScript on orientation change

javascript iphone iphone-web-app

I have a webapp saved to the iPhone homescreen, and I need to run some JavaScript when the device changes orientation.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.