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

example of consuming a JSON web service?

3 Answers 331 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tony
Top achievements
Rank 1
Tony asked on 16 Nov 2012, 05:00 PM
I am looking for an example of how to consume and display remote data from a JSON web service into an Icenium listview.

3 Answers, 1 is accepted

Sort by
0
pete
Top achievements
Rank 1
answered on 18 Nov 2012, 10:57 AM
Hi Tony

is this what you're looking for:
http://www.kendoui.com/code-library/mobile/listview/listview---mvvm-crud-operations.aspx

I copied the body section into a new icenium project from the example html, moved the trailing </body> to above the <script> as graphite thinks it's a syntax error, clicked run and had it working on the nexus 10 in a couple of mins.

Pete
0
Jordan
Telerik team
answered on 19 Nov 2012, 07:55 AM
Hello Tony,

Thank you for trying out Icenium and hope you like it.

On you question, easiest way to consume JSON/JSONP services from Icenium project is by jQuery ajax methods.

Check this out for quick introduction and jQuery ajax documentation.

Note: You can debug your JSON consuming application on device or in Icenium Graphite (Windows client) due to browser security limitations for Mist (in-browser client) as discussed here unless your service specifies :
Access-Control-Allow-Origin: *

Services exposing JSONP (like Twitter) do not have this limitation as it is intended for CORS scenario usage and can be debugged in Icenium Mist in browser.

Kind regards,
Jordan
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Tony
Top achievements
Rank 1
answered on 21 Nov 2012, 03:34 PM
Pete - thanks for your reply...I was able to successfully do what you described and got it running in a couple of minutes.  Jordan - thanks for your reply as well, I will look over the ajax documentation.  I love the direction you guys are taking Icenium...keep up the good work!
Tags
General Discussion
Asked by
Tony
Top achievements
Rank 1
Answers by
pete
Top achievements
Rank 1
Jordan
Telerik team
Tony
Top achievements
Rank 1
Share this question
or