Navigate to section on mobile

2 posts, 0 answers
  1. GtAntoine
    GtAntoine avatar
    2 posts
    Member since:
    Sep 2014

    Posted 20 Oct 2014 Link to this post


    I am currently developing an application with a tabstrip and I wanted to know if there is a way to navigate to a specific section on a page when I select a view.

    For example I want to go to the section with id="bar" when I select the view foo.

    I tried this but it didn't work : 

                <div data-role="tabstrip">
                    <a href="views/home.html" data-icon="home">home</a> 
                    <a href="views/foo.html#bar" data-icon="settings">foo</a>

    The real question is : Is there a way to have content that is visible only when I pull down the page ?
  2. Petyo
    Petyo avatar
    2436 posts

    Posted 22 Oct 2014 Link to this post

    Hello Antoine,

    Since the mobile application uses the frament part of the url (the #bar part), and also features javascript scrolling, anchor navigations do not work. you may, however, scroll to a specific section of the view by using the scrollTo method of the scroller in the view show event handler, for example. 

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top