-
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.
-
-
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
-
The Following User Says Thank You to ddadmin For This Useful Post:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks