Hulya Yavz Hulya Yavz - 3 months ago 11
iOS Question

phonegap cordova json parse)

I've been working on a project with cordova about blog bases. I listed the blog pages according to their categories. I can take data from Json but i cannot list the singleblogs. I call it with callback method but i can't see anything in the phone screen except dummy data. I'll be glad if you can help me. Thank you

(i edited this question; is new)


Firstly I see on the code, In Cordova there is a event fired when the device is ready, you must put this code inside a method and add listener, instead the document ready of JQuery:

document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady(){
   alert("I'm Working");

Secondly, you have to include a javascript file called cordova.js in your HTML file, depending the way you're building your app you can find that file.

This guide can help you out.