question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<! doctype html>
<html>
    <head>
        <script src="jquery-2.1.1.min.js"></script>
        <script>
            $(function(){
                $(".test").css({"height":$(window).height()});
                $.scrollify({
                    section:".test"
                });
            });
        </script>
        <style>
            .test{
                width: 100%;
            }
            .red{
                background-color: red;
            }
            .blue{
                background-color: blue;
            }
        </style>
    </head>
    <body>
        <section class="test red"></section>
        <section class="test blue"></section>
    </body>
    <script src="jquery.easing.1.3.js"></script>
    <script src="scrollify.min.js"></script>
</html>

browser always remind :“Uncaught TypeError: Cannot read property ‘length’ of undefined ”

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lukehaascommented, Apr 16, 2015

Hi @LyricaMuc to do that you just need to create an event handler for the links in your menu and then call the Scrollify ‘move’ method and parse the name of the sections to it. If needed, you can find more details about the move method in the readme file. Hope that’s all clear, let me know if not.

1reaction
lukehaascommented, Jul 8, 2014

@TurtleWolf this can be done by using the move method straight after your scrollify deceleration.

$.scrollify(“move”,“#name”);

The name will be the sectionName defined in the data attribute for the section you want to move to.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to ask for help | Psyche Guides
Ask in the face of discomfort. Notice any fear, anxiety or shame that arises as you proceed to ask for help. Label the...
Read more >
4 Tips to Effectively Ask for Help—and Get a Yes
1. Be concise and specific. Asking for and offering help can only be productive under one crucial condition: clear communication. · 2. Don't ......
Read more >
Asking for Help Is So Damn Hard. Here's How to Make It Easier
1. Psych yourself up with science. · 2. Make asking for help a habit. · 3. Make SMART requests. · 4. Normalize asking...
Read more >
How to Ask for Help When You Need It - Lolly Daskal
Ask privately, praise publicly. The best way to ask for help is do it privately. Pick one or two people you think are...
Read more >
How to Ask for Help & Know When You Need It - wikiHow
1. Choose the right time. Don’t ask someone for help when they are obviously busy or distracted. For example, don’t ask your professor...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found