HTML5 History API

5 posts, 0 answers
  1. Josh
    Josh avatar
    72 posts
    Member since:
    Jun 2013

    Posted 09 Aug 2013 Link to this post

    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?
  2. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 12 Aug 2013 Link to this post

    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!
  3. Josh
    Josh avatar
    72 posts
    Member since:
    Jun 2013

    Posted 04 Nov 2014 in reply to Petyo Link to this post

    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
  4. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 06 Nov 2014 Link to this post

    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!
     
  5. Josh
    Josh avatar
    72 posts
    Member since:
    Jun 2013

    Posted 07 Nov 2014 in reply to Petyo Link to this post

    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.
Back to Top