lorenzo
Posts: 0
Joined: Fri Feb 08, 2013 3:50 am

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

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.....

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

Hello Lorenzo,

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

lorenzo
Posts: 0
Joined: Fri Feb 08, 2013 3:50 am

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

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

Lorenzo,

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

lorenzo
Posts: 0
Joined: Fri Feb 08, 2013 3:50 am

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

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

lorenzo
Posts: 0
Joined: Fri Feb 08, 2013 3:50 am

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

I tried this but still not working...

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

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.

lorenzo
Posts: 0
Joined: Fri Feb 08, 2013 3:50 am

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

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

Return to “Issues”