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

Cannot navigate to view with link created from template

1 Answer 22 Views
Templates
This is a migrated thread and some comments may be shown as answers.
seyhan
Top achievements
Rank 1
seyhan asked on 05 May 2015, 09:32 AM

I have some issue with navigating to a view with a link created from template. This is my code

<div data-role="view" id="listview-products"> 

  <a data-align="left" data-role="touch" href="\#listview-products">

     <div class='product'>
     </div>
  </a>

</div> 

 

 

<div data-role="view" id="listview-products">

test

</div> 

 

 

when i click on this div (in chrome browser on pc) i get this error: XMLHttpRequest cannot load '<deleted for readability>' Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource. 

I don't understand this error because i am trying to load a plain local view. This works when i use data-role="button" on the div element.

 

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 07 May 2015, 07:02 AM

Hello Seyhan,

 

There are two issue with the code you have pasted. Both views' name are identical and the hash tag should not be escaped. Correcting those you address the behavior you have described.

 

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