Results 1 to 7 of 7

Thread: Dynamically Add Panels to Step Carousel

  1. #1
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamically Add Panels to Step Carousel

    1) Script Title: Step Carousel Viewer v1.6.1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm

    3) Describe problem: Is it possible to add panels to Step Carousel dynamically during page load? I have a variable number of panels that I want to load and each contains some fairly elaborate vb.net markup.

    Any help anybody can provide on how to do this would be greatly appreciated.

    MDCragg

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It depends what you mean by "during page load". If you mean initially as the page is loading, you would simply have the server dynamically output the HTML of the Carousel Viewer as if you had manually added it to the page's source, and that's it. Or do you mean after the page has loaded? If so, please provide more details.
    DD Admin

  3. #3
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I need to populate Step Carousel only once...during page load. Most specifically, I need to know what commands to use and also how to invoke them using VB.Net in an ASP page's Page_Load sub. Any help you can provide would be greatly appreciated.

    MDCragg

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    In general, the checklist for using any server side language to dynamically output client side JavaScript is the same. As long as what gets output to the browser looks identical to as if you've manually included the script (in this case Step Carousel viewer) on your page, it will work. I'm not familiar with VB.net unfortunately, so can't really help with how to exactly go about this.
    DD Admin

  5. #5
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    It depends what you mean by "during page load". If you mean initially as the page is loading, you would simply have the server dynamically output the HTML of the Carousel Viewer as if you had manually added it to the page's source, and that's it. Or do you mean after the page has loaded? If so, please provide more details.
    i would like to load the images after page loads.

    ie suppose i have 1000 images, it wouldnt be fine if i load it initially along the page load. i would prefer then to be loaded 20 each at a time. so if the user comes to the 17 or 18 image it will fetch the next 20... like that...

    any ideas?

  6. #6
    Join Date
    Mar 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    Hi,

    I too need to dynamically add panels, and I mean initially as the page is loading. It's not an option for me to change my webapp infrastructure to deliver me divs, though I will be getting the information to populate the carousel from an ajax call, in the form if JSON data which I'll use to create the divs.

    Short of hacking the stepcarousel source, is there any way to do this?

    Thanks,

    Eric

  7. #7
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello,

    I have the same question that Eric,

    did you succeed to refresh the script to use JSON data ??

    thx a lot,

    Léo

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •