title: Parse.com, Javascript, Tables
body: <p>I have a javascript table that is displaying data that is store in a parse.com server, i also have a iOS App that is also getting the same data from the same place on the iOS App it is every for row that has been selected in the table to store the object id in an NSString to be used in other like adding it a favourite column etc however on the javascript side i have not been very successful at this can one help?</p>
  
  <p>iOS </p>
  
  <pre><code>    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {[tableView deselectRowAtIndexPath:indexPath animated:YES];
      PFObject *tempObject = [HomeArray objectAtIndex:indexPath.row];
      NSLog(@"%@", tempObject.objectId);
      _NameOfGame.text = [tempObject objectForKey:@"NameGame"];
      _Items.text = [tempObject objectForKey:@"item"];
      _Des.text = [tempObject objectForKey:@"des"];
      userFirstname = [tempObject objectForKey:@"FirstName"];
      group = [tempObject objectForKey:@"group"];
      device = [tempObject objectForKey:@"Device"];
      together = [NSString stringWithFormat:@"Uploaded by %@ from %@ on a %@", userFirstname, group, device];
      PFFile *video = [tempObject objectForKey:@"Video"];
      _videoUrl = video.url;
      NSLog(@"got a video %@", _videoUrl);
      _deleteObjectID = [HomeArray objectAtIndex:indexPath.row];
      NSLog(@"%@", _deleteObjectID);
      [self animateDetailView];}
  </code></pre>
  
  <p>Javascript</p>
  
  <pre><code>    var GameScore = Parse.Object.extend("games");
  var query = new Parse.Query(GameScore);
  query.equalTo("group", strUser)
  query.find(
  {
      success: function(results)
      {        
          for (var i = 0; i &lt; results.length; i++) 
          {
              var object = results[i];
  
              (function($) {
                  $("#first-team-results-table").append("&lt;tr&gt;&lt;td&gt;" 
                  +"&lt;input type='checkbox' data-id='" + object.id + "'/&gt;" $(checkBox).appendTo("#modifiersDiv")
                  + "&lt;/td&gt;&lt;td&gt;"
                      + object.get("NameGame")
                      + "&lt;/td&gt;&lt;td&gt;" 
                      + object.get("item") 
                      + "&lt;/td&gt;&lt;td&gt;" 
                      + object.get("des") 
                      + "&lt;/td&gt;&lt;/tr&gt;");
              })(jQuery);
         }
      error: function(error) {
          alert("Error: " + error.code + " " + error.message);
      }
  })
  });
  </code></pre>
  
  <p>I have try with checkboxes in javascript but no luck</p>