Results 1 to 2 of 2

Thread: Step Carousel: Use hyperlinks to load different files via ajax?

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

    Default Step Carousel: Use hyperlinks to load different files via ajax?

    1) Script Title: Step Carousel Viewer v1.6.1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...epcarousel.htm

    3) Describe problem: Hi, I'm very novice at coding, so I was wondering if I could get some help please.

    I'm using your Step Carousel Viewer (class by the way...thank you) on my site. I've changed the code to the following:

    [CODE]stepcarousel.setup
    ......
    .....
    .....
    contenttype: ["ajax", "somefile.htm"]
    [CODE]

    This is loading the external file fine for me.

    Here's my existing page:

    http://www.trevormoody.com/design/prints.html

    My question is, can I use some form of "IF" statement to load a different external file based on a link clicked? IE->

    weddings would load [CODE] contenttype: ["ajax", "weddings.htm"] [CODE]
    lifestyle would load [CODE] contenttype: ["ajax", "lifestyle.htm"] [CODE]
    portraits would load [CODE] contenttype: ["ajax", "portraits.htm"] [CODE]

    I hope I've got the format of this post correct, if not please excuse.

    Regards,
    Trevor.

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

    Default

    There's currently no easy way to load a new HTML file into the Step Carousel after it has loaded on the page unfortunately. I plan to add such a feature the next time the script is updated, most likely sometime early next month.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Trev (08-12-2009)

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
  •