Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ontick not gets called when i include this code in my project but it works when i made an indiviual file for this amount of code

JavaScript
$('.SearchContent5').each(function(i) {
        var position = $(this).position();
        console.log(position);
        console.log('min: ' + position.top + ' / max: ' + parseInt(position.top + $(this).height()));

        $('.SearchContent5').scrollspy({
            min: 10,
            max: position.top + $(this).height(),
            mode: 'vertical',
            onTick: function(element, position) {
               alert();
            }
        });
    });
Posted
Comments
Sandeep Mewara 12-May-13 15:15pm    
ontick not gets called when i include this code in my project but it works when i made an indiviual file for this amount of code
Based on the question sentence, it clearly means that above code lines have no issue and you have problem somewhere else.
Sunasara Imdadhusen 21-May-13 3:49am    
Is there any error?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900