I am currently wondering why I can't work with my JSON-result in JavaScript, anyone got an idea?
I do not get any alert, even if the result of the JSON-call is successfull (return code 200) and I can see the result in Firebug.
$(document).on('pageinit', function(event){
   ...
   $('.link').on('click', function (event) {
          var parm = $(this).attr("data-parm");
          var url = 'http://****:8000/service?parameter=' + parm;
          $.getJSON(url, function (data) {
             var result = $.parseJSON(data);
             alert(result[1].emnam);
             parse(result);
          });
   });
});
function parse( result ) {
      alert( 'parse function' );
}
My JSON result does look like this in the browser (via Firebug or Chrome-Dev-Tools)
{success: "true", 
msg: "Data retrieved", 
data: [
{pernr: "00001032", emnam: "Michaela"}, 
{pernr: "00001016", emnam: "Mike"},
{pernr: "00001024", emnam: "Frank"}
]}
At the end, I want to append the listview dynamically into my div #list, having pernr and the name as columns.. Thank you!
 
     
     
    