Page 1 of 1

How do I use dsid name in javascript to show the carousel content

Posted: Mon Sep 01, 2014 2:51 pm
by lorenzo

How do I use dsid name in javascript to show the carousel content?
Ived created a button and in the event, run javascript I'ved put this up

$('[dsid=mobilegrid_175]').click(function(){
$('[dsid=mobilecarouselitem_4]').show();});

There are no error warnings but to my surprise the code does work for me.....

Please enlighten me, Thanks in advance.....


How do I use dsid name in javascript to show the carousel content

Posted: Mon Sep 01, 2014 3:58 pm
by Evgene Karachevtsev

Hello Lorenzo,

Please detail on what event what do you want to do?


How do I use dsid name in javascript to show the carousel content

Posted: Mon Sep 01, 2014 5:27 pm
by lorenzo

Hello,
In event, click, run javascript....I want mobilegrid_175 to be a click button. Upon clicking this grid, it will show mobilecarouselitem_4....


How do I use dsid name in javascript to show the carousel content

Posted: Mon Sep 01, 2014 5:45 pm
by Evgene Karachevtsev

Lorenzo,

Please try this code:
preAppery("carouselName").carouselRoot.carousel("to", index);/pre
where index is the index of an item in the carousel


How do I use dsid name in javascript to show the carousel content

Posted: Mon Sep 01, 2014 5:50 pm
by lorenzo

I shall try it then, Thanks for the quick response and the support....


How do I use dsid name in javascript to show the carousel content

Posted: Mon Sep 01, 2014 5:57 pm
by lorenzo

I tried this but still not working...

Appery("mobilecarousel_2").carouselRoot.carousel("to", mobilecarouselitem_4);


How do I use dsid name in javascript to show the carousel content

Posted: Mon Sep 01, 2014 9:45 pm
by Illya Stepanov

Hi Lorenzo,

In the index you should point to the numeric item index (the indexes are starting from 0)

pre
codeAppery("mobilecarousel_2").carouselRoot.carousel("to", 2);/code
/pre
-- here it means to open third item.


How do I use dsid name in javascript to show the carousel content

Posted: Tue Sep 02, 2014 2:12 am
by lorenzo

Its working now, thanks for clearing thing to me.....I am very thankful for the support...


How do I use dsid name in javascript to show the carousel content

Posted: Tue Sep 02, 2014 2:17 am
by Illya Stepanov

You are welcome! :)