Hello,
I've recently updated to the latest build of Kendo Mobile.
I have been working on integrating the mobile framework into a CMS that has a dynamically generated navigation and objects. One of the things I am struggling with the most is the use of hashtags within the URL's.
For example:
I have a dynamic navigation that outputs the tabstrip nav like this:
Each href is a dynamic page generated by the CMS. Unfortunately, whenever a link is clicked, Kendo insists on adding a hashtag in the URL, thinking it's a local view (i.e. http://kendo.themodmedia.com/#/gallery). I've even tried using absolute URL's in the href and the output is like this: http://kendo.themodmedia.com/#/http://kendo.themodmedia.com/gallery.
Is there a way to tell Kendo that if the href does not start with a hash tag, then it is not a local view?
Another example is that the CMS contact form outputs a string appended to the URL when the form is submitted. Something like
"?nocache=1#form1234567890" which jumps to a div of that id that displays the form response (i.e. "Thank you!"). The problem is that because that hash tag is in the URL, Kendo tries to load it as a local view, which doesn't exist.
Is there a global way to tell Kendo "If the div contains a data-role of "view" try to load a view; if not, just behave normally"? It just seems like Kendo is trying to force everything into a view and forgets that hash tags are still used for other things within a website.
Here is the demo site: http://kendo.themodmedia.com?mobileFormat=true (once the URL is loaded, you can remove the ?mobileFormat=true string).
Thanks!
Ronnie
I've recently updated to the latest build of Kendo Mobile.
I have been working on integrating the mobile framework into a CMS that has a dynamically generated navigation and objects. One of the things I am struggling with the most is the use of hashtags within the URL's.
For example:
I have a dynamic navigation that outputs the tabstrip nav like this:
<
div
data-role
=
"footer"
>
<
div
data-role
=
"tabstrip"
id
=
"custom-tabstrip"
>
<
a
href
=
"/"
data-icon
=
"home"
>Home</
a
>
<
a
href
=
"/gallery/"
data-icon
=
"camera"
>Gallery</
a
>
<
a
href
=
"/blog/"
data-icon
=
"compose"
>Blog</
a
>
<
a
href
=
"/contact/"
data-icon
=
"globe"
>Contact</
a
>
<
a
href
=
"?mobileFormat=false"
data-icon
=
"action"
>Full Site</
a
>
</
div>
</
div
>
Is there a way to tell Kendo that if the href does not start with a hash tag, then it is not a local view?
Another example is that the CMS contact form outputs a string appended to the URL when the form is submitted. Something like
"?nocache=1#form1234567890" which jumps to a div of that id that displays the form response (i.e. "Thank you!"). The problem is that because that hash tag is in the URL, Kendo tries to load it as a local view, which doesn't exist.
Is there a global way to tell Kendo "If the div contains a data-role of "view" try to load a view; if not, just behave normally"? It just seems like Kendo is trying to force everything into a view and forgets that hash tags are still used for other things within a website.
Here is the demo site: http://kendo.themodmedia.com?mobileFormat=true (once the URL is loaded, you can remove the ?mobileFormat=true string).
Thanks!
Ronnie