Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <input class="searchType" type="checkbox" name="SharingNotification" id={{ taskExecution.id }}>
  2. <label class="searchtype2label">{{ taskExecution.id }}</label>
  3. </input>
  4.  
  5.  
  6. $('.searchType').click(function(event) {
  7. if(this.checked){
  8. $.ajax({
  9. type: "POST",
  10. url: '/app_dev.php/api/customer/customers',
  11. data: $(this).attr('id'),
  12. success: function(data) {
  13. alert('it worked');
  14. alert(data);
  15. $('#container').html(data);
  16. },
  17. error: function() {
  18. alert('it broke');
  19. },
  20. complete: function() {
  21. alert('it completed');
  22. }
  23. });
  24.  
  25. }
  26. });
  27.  
  28. request = {SymfonyComponentHttpFoundationParameterBag} [1]
  29. parameters = {array} [1]
  30. 1 = ""
  31.  
  32. data: {id: $(this).attr('id')},
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement