B5107656409
Posts: 0
Joined: Thu Jul 23, 2015 6:39 am

looping process for each record in javascript success event

Hello All,
my external REST returns as follow:

<!--
<Results
<Result
<deviceidABCDEF</deviceid
<nameTom</latitude
<dob2000-02-10</longitude
</Result
<Result
<deviceidACDEF</deviceid
<nameSusan</latitude
<dob2000-03-13</longitude
</Result
</Results
--

I need to do looping process for each record in javascript success event

how to do this?

thanks a lot in advance

Regards
Win

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

looping process for each record in javascript success event

Hello,

Please add JS handler to the success event of the service.
E.g.:
$.each(data, function( k, v ) {
alert( "Key: " + k + ", Value: " + v );
});

here data - variable with service's response

Return to “Issues”