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

URL fragment navigation broken?

3 Answers 25 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin Amm
Top achievements
Rank 1
Martin Amm asked on 28 Nov 2013, 11:22 AM
Hi,

I've a problem with multiple of your sample apps when running e.g. on an iPhone or iPad.

e.g. If I go to http://demos.kendoui.com/mobile/m/index.html#/mobile/m/tabstrip/index.html and select the rating tab then I go to another browser tab or another app. When returning to the tabs trip sample safari might reload the page.

expected result: I see the same page after returning

result: I get an empty page

you can force this by touching reload. Again expected result: seeing the page I've seen before. Result: empty page

I have seen this behavior in all of your samples. So I'm wondering if that's broken by design or how it can be fixed?

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 28 Nov 2013, 04:13 PM
Hi Martin,

the behavior you observe is due to secondary remote views. When a remote view is requested, its response may contain additional views, which are injected in the DOM, and may be referred to later, as local views. However, these secondary remote views don't have fully qualified URL. This approach is suitable if the views in question don't have to be bookmarkable, or the application is phonegap based. 

In case you experience such problem in your app, you can easily avoid it by not using secondary remote views. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Martin Amm
Top achievements
Rank 1
answered on 28 Nov 2013, 04:30 PM
I didn't bookmark the URL and random refreshing of pages is the default behavior in mobile browsers (at least in iOS).

So if I understand you correct "secondary remote views" work only in phone gap and are broken by design in mobile browses and should therefore not be used.

Maybe you shouldn't use these "secondary remote views" in your own online samples, as these samples mostly fail sooner or later!
0
Petyo
Telerik team
answered on 02 Dec 2013, 07:12 AM
Hello Martin,

Thank you for your suggestion. We will make sure that this case is better explained in our documentation, too. In case you need any further help regarding this behavior, do not hesitate to contact us. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Martin Amm
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Martin Amm
Top achievements
Rank 1
Share this question
or