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

HTML5 History API

4 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 09 Aug 2013, 11:18 PM
I'm seeing conflicting information regarding support for the HTML5 History API in Kendo. I can't find any mention of it in the docs, but I do see a comment about how history is implemented in SPA via the Router using page fragments (#stuff). I do not want to use page fragments. Instead, I want to use the HTML5 History API.
I submitted a feature request for this, but it was declined because it is apparently already supported:
http://feedback.kendoui.com/forums/127393-kendo-ui-feedback/suggestions/4183941-support-html5-history-api

Where is it supported and is there any documentation I can look at to see how to use it?

4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 12 Aug 2013, 09:04 AM
Hi Joshua,

The router component has (currently undocumented) pushState support, which got released with in Q2 2013. We are about to document that as soon as possible. For now, you can refer to this working sample as a starting point.

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Josh
Top achievements
Rank 1
answered on 04 Nov 2014, 09:46 PM
Hi,

I see that you now partially support the History API, and that you mention the state object is not supported. Is support for the state object coming, or is there some other preferred approach to keeping state that I'm missing?

Regards,
Josh
0
Petyo
Telerik team
answered on 06 Nov 2014, 12:18 PM
Hello Joshua,

we don't have any concrete plans for the state object support, mostly because that would be a specific implementation for the pushState mode (and our hashchange/pushSate implementations are symmetric so far). To be honest, I am not sure how that support would look as an API. Perhaps you may give us some suggestions (and a sample use case)? This will help us further. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Josh
Top achievements
Rank 1
answered on 07 Nov 2014, 05:14 PM
Thanks Petyo. Actually, I think we will be able to use your SPA/MVVM approach and not need the state object. I will report back here with specifics if that is not the case.
Tags
General Discussions
Asked by
Josh
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Josh
Top achievements
Rank 1
Share this question
or