problem

stefanoalmonte's Avatar

stefanoalmonte

25 Sep, 2015 09:42 AM

i have this message on touchcarousel:

Uncaught TypeError: Cannot read property 'style' of undefined
 this my code (partial):

.primopiano_slide{
position:relative;
padding:0;
overflow:hidden;
background-color:#f5f5f5;
}
#primopiano_slide_content{
position:relative;
padding:0;
background-color:#f5f5f5;
height:100px;
min-height:100px;
width:100%;
}
.primopiano_slide_content_slide{
position:relative;
height:100px;
padding:10px 0 0 0;
width:297px;
}

<div id="primopiano_slide" class="primopiano_slide contouch">
<div id="primopiano_slide_content" class="primopiano_slide_content touchcarousel black-and-white">
<ul class="touchcarousel-container">

<li class="touchcarousel-item">
<div class="primopiano_slide_content_slide">
<a itemprop="url" class="first" href="#">
<div class="primopiano_slide_content_data">
<div class="primopiano_slide_content_data_giorno">18</div>
<div class="primopiano_slide_content_data_meseanno">set 2015</div>
</div>
<div class="primopiano_slide_content_titolo">bla bla bla bla bla</div>
</a>
</div>
</li>

...

</ul>
</div>
<div id="primopiano_slide_content_shadow" class="primopiano_slide_content_shadow"></div>
</div>

var sliderInstance = $("#primopiano_slide_content").touchCarousel({
pagingNav: false,
snapToItems: false,
itemsPerMove: 4,
scrollToLast: false,
loopItems: false,
scrollbar: false

}).data("touchCarousel");

help...

  1. 1 Posted by stefanoalmonte on 25 Sep, 2015 10:20 AM

    stefanoalmonte's Avatar

    solved thanks

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac