This is a migrated thread and some comments may be shown as answers.

Issues with internal links to sections (Anchors)

1 Answer 89 Views
jQuery Mobile
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
CETA - Centro de Estudios Tributarios
Top achievements
Rank 1
CETA - Centro de Estudios Tributarios asked on 27 Jun 2014, 03:45 PM
Hello Telerik team,
In a view, we have several internal links to an anchor. Traditionally the HTML links to anchors work using the hash (#) symbol. Example:

---------------------------------------------------------------
HTML Contents of the view:
---------------------------------------------------------------
HTML Line 1
HTML Line 2
<a href='#Bottom'>Go to bottom</a>
HTML Line 4
HTML Line 5
<a href='#Bottom'>Go to bottom</a>
HTML Line 7
HTML Line 8
<a id="Bottom">
This is the bottom of the document
---------------------------------------------------------------

When the user clicks/touches some of those link, the view effectively scrolls to the indicated section (anchor). However, after the click/touch event, the application enters into a frozen state where no more events are received. It seems like an invisible layer at the top of the application that captures all the events.

Thank you

JC






1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 02 Jul 2014, 03:36 PM
Hi JC,

Mobile apps use the # symbol in a link href to navigate to specific view. This is why the anchor linking you need to implement doesn't work out-of-the-box in a mobile app.

If you're using jQuery Mobile, then you can take a look at this SOF thread discussing possible implementations of links to anchors.

If you're using Kendo UI Mobile, then you will have to implement custom navigation by handling the click event of your hyperlinks and manually scrolling to the anchor. You can, for instance, use the kendo.mobile.ui.Scroller methods. You can examine this thread for a sample example of the same.

I hope the above information will help you move forward with your development. However, please let us know if we can further assist you.

Regards,
Tina Stancheva
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
jQuery Mobile
Asked by
CETA - Centro de Estudios Tributarios
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or