Guest User

Untitled

a guest
Jul 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // asi se mandaria llamar un filtro para carreteras
  2. // que filtre por estado.id,
  3. $.ajax({
  4. url: "/filtros/carreteras", // Esta action estaria en el FiltrosController
  5. type: 'POST',
  6. dataType: 'json',
  7. contentType: 'application/json',
  8. data: JSON.stringify({
  9. filters: [
  10. { 'estado.id': '77' },
  11. { 'otraRelacionDeCarretera.id', 99 }
  12. ]
  13. }),
  14. success: function(data) {
  15. console.debug("OBTUVE LAS SIG CARRETERAS", data);
  16. }
  17. });
Add Comment
Please, Sign In to add comment