Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6914771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:23:26+00:00 2026-05-27T09:23:26+00:00

I have a asp.net Generated table that creates a table which is slide show

  • 0

I have a asp.net Generated table that creates a table which is slide show as well. For the slide show to work, I need to only select the element of the table. This is a problem if the table has more than one row. I am using jquery cycle plugin for the slide show.

This would work fine and display Slide 1 2 3.

<table>
    <tbody>
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
        </tr>
    </tbody>
<table>

But if you add another row it will not work properly

<table>
    <tbody>
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
        </tr>
        <tr>
            <td>4</td>
            <td>5</td>
            <td>6</td>
        </tr>
    </tbody>
</table>

Here is the selector to select the slides from the table. I only want to select the root td’s from this table. There are inner tables, but I do not want those to be selected. I am assuming I just need to change the selector to get this to work properly. Thanks for any help.

 $('#SlideTable').cycle({
            fx: 'fade',
            speed: 'fast',
            next: null,
            prev: null,
            startingSlide: slideNumber - 1
        });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:23:27+00:00Added an answer on May 27, 2026 at 9:23 am

    Ok, still not 100% sure on what you want to do, but based on what you have said, I am assuming you are wanting a slideshow with a thumbnail gallery where the slideshow shows 1 image and pans through them while the gallery shows all of the images in the slideshow. In this case, you probably would end up having click events on the gallery images to force the slideshow to that image. If this is not correct, then please let me know and I will try to help further.

    Assuming all of this is true, and that your slider function (looks like you are using jQuery Cycle plugin so this will hold) can be used on a div with images inside it, you could do something like this:

    HTML for the gallery and slider container

    <table id="gallery">
        <tbody>
            <tr>
                <td><img src="path/to/img1"/></td>
                <td><img src="path/to/img2"/></td>
                <td><img src="path/to/img3"/></td>
            </tr>
            <tr>
                <td><img src="path/to/img4"/></td>
                <td><img src="path/to/img5"/></td>
                <td><img src="path/to/img6"/></td>
            </tr>
        </tbody>
    </table>
    
    <div id="slider"></div>
    

    JavaScript to setup the slider

    $('#gallery td').each(function() {
        $('#slider').append($(this).children().clone());    
    });
    
    $('#slider').cycle({
        fx: 'fade',
        speed: 'fast',
        next: null,
        prev: null,
        startingSlide: slideNumber - 1
    });
    

    BTW, the first selector $('#gallery td') grabs all of the td‘s in a table with id gallery

    We select all of the td’s from the gallery table and generate a clone of them in the slider container. We then call the cycle plugin on the slider container to make a slider show with all images. This should result in a gallery of images and a slideshow of the images. Click events not included, but should be pretty simple to add.

    Let me know if this helps or not. If not, correct my assumptions and I will try to help further.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web page that has an HTML table generated by an ASP.NET
I have the following HTML generated by an ASP.NET repeater: <table> <tr> <td><input type=hidden
I'm matching ASP.Net generated elements by ID name, but I have some elements which
I have an asp.net url path which is being generated in a web form,
I have some pages on my public website that display charts generated by ASP.NET
I'm using ASP.NET MVC RC2. I have a set of classes that were auto-generated
I have dragged a empty asp.net table onto my webform. I generate all the
Using asp.net, I need to generate a snapshot of an youtube video. I have
I have an ASP.NET web form. This web form has an event handler that
Let's say I have an ASP.NET web application. I create an aspx page that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.